diff options
author | erdgeist <> | 2006-01-27 00:21:03 +0000 |
---|---|---|
committer | erdgeist <> | 2006-01-27 00:21:03 +0000 |
commit | 53c6fc315ef01f5924fdfcc309d673d3a00d97a7 (patch) | |
tree | 72a0bf167d59164716b47d26a2479e53f229a6c7 | |
parent | 09e1c16d77507bd67188c8062f60d3503f7961ec (diff) |
do not open channel window in query mode
-rwxr-xr-x | vchat-ui.c | 38 |
1 files changed, 19 insertions, 19 deletions
@@ -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 | ||
602 | void toggleprivwin (void) { | 602 | void 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 | ||
622 | void | 622 | void |
623 | shrinkprivwin (void) { | 623 | shrinkprivwin (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 */ |