summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2007-02-11 04:14:14 +0000
committererdgeist <>2007-02-11 04:14:14 +0000
commitecbe7c56f288f7b2a72764b39cc2e06a169fea8b (patch)
tree752a1b0b37d27392580c870ca01f95d237fe74d1
parent7f819c1a4cc13effc45ceac600ff8c7b1e254f3d (diff)
May specify privcollaps=1 in config to hide pm window on start up
-rwxr-xr-xvchat-config.h3
-rwxr-xr-xvchat-ui.c6
-rwxr-xr-xvchat.h2
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 } },
diff --git a/vchat-ui.c b/vchat-ui.c
index 6742656..544644d 100755
--- a/vchat-ui.c
+++ b/vchat-ui.c
@@ -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
diff --git a/vchat.h b/vchat.h
index 5293482..fbc9a2e 100755
--- a/vchat.h
+++ b/vchat.h
@@ -37,7 +37,7 @@ typedef struct servermessage servermessage;
37typedef enum { CO_NIL, CO_STR, CO_INT } conftype; 37typedef enum { CO_NIL, CO_STR, CO_INT } conftype;
38typedef enum { CF_NIL, CF_NICK, CF_FROM, CF_SERVERHOST, CF_SERVERPORT, 38typedef enum { CF_NIL, CF_NICK, CF_FROM, CF_SERVERHOST, CF_SERVERPORT,
39CF_CIPHERSUITE, CF_CONFIGFILE, CF_CERTFILE, CF_KEYFILE, CF_FORMFILE, CF_LOGINSCRIPT, 39CF_CIPHERSUITE, CF_CONFIGFILE, CF_CERTFILE, CF_KEYFILE, CF_FORMFILE, CF_LOGINSCRIPT,
40CF_USESSL, CF_USECERT, CF_PRIVHEIGHT, CF_HSCROLL, CF_CHANNEL, CF_USETIME, 40CF_USESSL, CF_USECERT, CF_PRIVHEIGHT, CF_PRIVCOLLAPS, CF_HSCROLL, CF_CHANNEL, CF_USETIME,
41CF_USETOPIC, CF_SCROLLBPRIV, CF_SCROLLBACK, CF_SCROLLBPRIVT, CF_SCROLLBACKT, 41CF_USETOPIC, CF_SCROLLBPRIV, CF_SCROLLBACK, CF_SCROLLBPRIVT, CF_SCROLLBACKT,
42CF_ENCODING, CF_BELLPRIV } confopt; 42CF_ENCODING, CF_BELLPRIV } confopt;
43 43