diff options
-rwxr-xr-x | vchat-config.h | 3 | ||||
-rwxr-xr-x | vchat-ui.c | 6 | ||||
-rwxr-xr-x | vchat.h | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/vchat-config.h b/vchat-config.h index d494736..e2bbc40 100755 --- a/vchat-config.h +++ b/vchat-config.h | |||
@@ -32,7 +32,7 @@ static volatile configoption configoptions[] = { | |||
32 | {CF_NICK, CO_STR, "nick", NULL, NULL, { .pstr = &nick } }, | 32 | {CF_NICK, CO_STR, "nick", NULL, NULL, { .pstr = &nick } }, |
33 | {CF_FROM, CO_STR, "from", "vc-alpha-0.16", NULL, { NULL } }, | 33 | {CF_FROM, CO_STR, "from", "vc-alpha-0.16", NULL, { NULL } }, |
34 | {CF_SERVERHOST, CO_STR, "host", "pulse.flatline.de", NULL, { NULL } }, | 34 | {CF_SERVERHOST, CO_STR, "host", "pulse.flatline.de", NULL, { NULL } }, |
35 | {CF_SERVERPORT, CO_STR, "port", "2325", NULL, { NULL } }, | 35 | {CF_SERVERPORT, CO_STR, "port", "2325", NULL, { NULL } }, |
36 | {CF_CIPHERSUITE, CO_STR, "ciphers", "HIGH:MEDIUM", NULL, { NULL } }, | 36 | {CF_CIPHERSUITE, CO_STR, "ciphers", "HIGH:MEDIUM", NULL, { NULL } }, |
37 | {CF_CONFIGFILE, CO_STR, "conffile", "~/.vchat/config", NULL, { NULL } }, | 37 | {CF_CONFIGFILE, CO_STR, "conffile", "~/.vchat/config", NULL, { NULL } }, |
38 | {CF_CERTFILE, CO_STR, "certfile", "~/.vchat/cert", NULL, { NULL } }, | 38 | {CF_CERTFILE, CO_STR, "certfile", "~/.vchat/cert", NULL, { NULL } }, |
@@ -45,6 +45,7 @@ static volatile configoption configoptions[] = { | |||
45 | {CF_USETIME, CO_INT, "usetime", (char *) 1, (char *)-1, { .pint = &usetime } }, | 45 | {CF_USETIME, CO_INT, "usetime", (char *) 1, (char *)-1, { .pint = &usetime } }, |
46 | {CF_USETOPIC, CO_INT, "usetopicbar",(char *) 1, (char *)-1, { NULL } }, | 46 | {CF_USETOPIC, CO_INT, "usetopicbar",(char *) 1, (char *)-1, { NULL } }, |
47 | {CF_PRIVHEIGHT, CO_INT, "messages", (char *) 0, (char *)-1, { NULL } }, | 47 | {CF_PRIVHEIGHT, CO_INT, "messages", (char *) 0, (char *)-1, { NULL } }, |
48 | {CF_PRIVCOLLAPS, CO_INT, "privcollaps",(char *) 0, (char *)-1, { NULL } }, | ||
48 | {CF_HSCROLL, CO_INT, "hscroll", (char *) 5, (char *)-1, { .pint = &hscroll } }, | 49 | {CF_HSCROLL, CO_INT, "hscroll", (char *) 5, (char *)-1, { .pint = &hscroll } }, |
49 | {CF_CHANNEL, CO_INT, "channel", (char *) 0, (char *)-1, { NULL } }, | 50 | {CF_CHANNEL, CO_INT, "channel", (char *) 0, (char *)-1, { NULL } }, |
50 | {CF_SCROLLBPRIV, CO_INT, "privscrollb",(char *) 2048, (char *)-1, { NULL } }, | 51 | {CF_SCROLLBPRIV, CO_INT, "privscrollb",(char *) 2048, (char *)-1, { NULL } }, |
@@ -788,7 +788,7 @@ resize (int signal) | |||
788 | if( topic ) | 788 | if( topic ) |
789 | wresize(topic,1,screensx); | 789 | wresize(topic,1,screensx); |
790 | 790 | ||
791 | /* public channel is always their and its height depends on: | 791 | /* public channel is always there and its height depends on: |
792 | * existence and visibility of priv window | 792 | * existence and visibility of priv window |
793 | * existence of a topic line (oldschool vchat style) | 793 | * existence of a topic line (oldschool vchat style) |
794 | */ | 794 | */ |
@@ -1211,6 +1211,10 @@ initui (void) | |||
1211 | rl_callback_handler_install ("", (rl_vcpfunc_t *) linecomplete); | 1211 | rl_callback_handler_install ("", (rl_vcpfunc_t *) linecomplete); |
1212 | #endif | 1212 | #endif |
1213 | 1213 | ||
1214 | |||
1215 | if( getintoption(CF_PRIVCOLLAPS) ) | ||
1216 | toggleprivwin(); | ||
1217 | |||
1214 | /* | 1218 | /* |
1215 | writeout( ">> Ctrl-X <<"); | 1219 | writeout( ">> Ctrl-X <<"); |
1216 | 1220 | ||
@@ -37,7 +37,7 @@ typedef struct servermessage servermessage; | |||
37 | typedef enum { CO_NIL, CO_STR, CO_INT } conftype; | 37 | typedef enum { CO_NIL, CO_STR, CO_INT } conftype; |
38 | typedef enum { CF_NIL, CF_NICK, CF_FROM, CF_SERVERHOST, CF_SERVERPORT, | 38 | typedef enum { CF_NIL, CF_NICK, CF_FROM, CF_SERVERHOST, CF_SERVERPORT, |
39 | CF_CIPHERSUITE, CF_CONFIGFILE, CF_CERTFILE, CF_KEYFILE, CF_FORMFILE, CF_LOGINSCRIPT, | 39 | CF_CIPHERSUITE, CF_CONFIGFILE, CF_CERTFILE, CF_KEYFILE, CF_FORMFILE, CF_LOGINSCRIPT, |
40 | CF_USESSL, CF_USECERT, CF_PRIVHEIGHT, CF_HSCROLL, CF_CHANNEL, CF_USETIME, | 40 | CF_USESSL, CF_USECERT, CF_PRIVHEIGHT, CF_PRIVCOLLAPS, CF_HSCROLL, CF_CHANNEL, CF_USETIME, |
41 | CF_USETOPIC, CF_SCROLLBPRIV, CF_SCROLLBACK, CF_SCROLLBPRIVT, CF_SCROLLBACKT, | 41 | CF_USETOPIC, CF_SCROLLBPRIV, CF_SCROLLBACK, CF_SCROLLBPRIVT, CF_SCROLLBACKT, |
42 | CF_ENCODING, CF_BELLPRIV } confopt; | 42 | CF_ENCODING, CF_BELLPRIV } confopt; |
43 | 43 | ||