From 53c6fc315ef01f5924fdfcc309d673d3a00d97a7 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Fri, 27 Jan 2006 00:21:03 +0000 Subject: do not open channel window in query mode --- vchat-ui.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/vchat-ui.c b/vchat-ui.c index bd1cbe0..f23e8b1 100755 --- a/vchat-ui.c +++ b/vchat-ui.c @@ -355,7 +355,7 @@ int writepriv (char *str, int maybeep) { ((filtertype == 0) || ( testfilter(tmp)))) { i = writescr(private, tmp); } - if( privwinhidden ) { + if( privwinhidden & !querypartner ) { if( (maybeep != 0) && (getintoption( CF_BELLPRIV ) != 0 )) putchar( 7 ); privheight_desired = privwinhidden; @@ -601,31 +601,31 @@ growprivwin (void) { void toggleprivwin (void) { if( outputshown ) { - outputshown = 0; - resize(0); + outputshown = 0; + resize(0); } else { - if( private ) { - if( privwinhidden ) { - privheight_desired = privwinhidden; - privwinhidden = 0; - } else { - privwinhidden = privheight_desired; - privheight_desired = 1; - sb_win = 0; - sb_priv->scroll = sb_priv->count; - } - resize(0); + if( private ) { + if( privwinhidden ) { + privheight_desired = privwinhidden; + privwinhidden = 0; + } else { + privwinhidden = privheight_desired; + privheight_desired = 1; + sb_win = 0; + sb_priv->scroll = sb_priv->count; } + resize(0); + } } } void shrinkprivwin (void) { - if( private && !privwinhidden ) { - if( --privheight_desired < 1) privheight_desired = 1; - if( privheight_desired > screensy - 5) privheight_desired = screensy - 5; - resize(0); - } + if( private && !privwinhidden ) { + if( --privheight_desired < 1) privheight_desired = 1; + if( privheight_desired > screensy - 5) privheight_desired = screensy - 5; + resize(0); + } } /* nick completion callback for readline */ -- cgit v1.2.3