summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xvchat-ui.c38
1 files 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) {
355 ((filtertype == 0) || ( testfilter(tmp)))) { 355 ((filtertype == 0) || ( testfilter(tmp)))) {
356 i = writescr(private, tmp); 356 i = writescr(private, tmp);
357 } 357 }
358 if( privwinhidden ) { 358 if( privwinhidden & !querypartner ) {
359 if( (maybeep != 0) && (getintoption( CF_BELLPRIV ) != 0 )) 359 if( (maybeep != 0) && (getintoption( CF_BELLPRIV ) != 0 ))
360 putchar( 7 ); 360 putchar( 7 );
361 privheight_desired = privwinhidden; 361 privheight_desired = privwinhidden;
@@ -601,31 +601,31 @@ growprivwin (void) {
601 601
602void toggleprivwin (void) { 602void toggleprivwin (void) {
603 if( outputshown ) { 603 if( outputshown ) {
604 outputshown = 0; 604 outputshown = 0;
605 resize(0); 605 resize(0);
606 } else { 606 } else {
607 if( private ) { 607 if( private ) {
608 if( privwinhidden ) { 608 if( privwinhidden ) {
609 privheight_desired = privwinhidden; 609 privheight_desired = privwinhidden;
610 privwinhidden = 0; 610 privwinhidden = 0;
611 } else { 611 } else {
612 privwinhidden = privheight_desired; 612 privwinhidden = privheight_desired;
613 privheight_desired = 1; 613 privheight_desired = 1;
614 sb_win = 0; 614 sb_win = 0;
615 sb_priv->scroll = sb_priv->count; 615 sb_priv->scroll = sb_priv->count;
616 }
617 resize(0);
618 } 616 }
617 resize(0);
618 }
619 } 619 }
620} 620}
621 621
622void 622void
623shrinkprivwin (void) { 623shrinkprivwin (void) {
624 if( private && !privwinhidden ) { 624 if( private && !privwinhidden ) {
625 if( --privheight_desired < 1) privheight_desired = 1; 625 if( --privheight_desired < 1) privheight_desired = 1;
626 if( privheight_desired > screensy - 5) privheight_desired = screensy - 5; 626 if( privheight_desired > screensy - 5) privheight_desired = screensy - 5;
627 resize(0); 627 resize(0);
628 } 628 }
629} 629}
630 630
631/* nick completion callback for readline */ 631/* nick completion callback for readline */