mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
SET print_active_channel - if you have multiple channels in same window,
should we always print the channel for each message (<nick:#channel>) or only when the channel isn't active. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@513 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
a31ac88d7d
commit
1a816b15f5
3 changed files with 17 additions and 4 deletions
|
|
@ -59,8 +59,8 @@ static void print_channel_msg(IRC_SERVER_REC *server, const char *msg,
|
|||
{
|
||||
CHANNEL_REC *chanrec;
|
||||
NICK_REC *nickrec;
|
||||
int for_me;
|
||||
const char *nickmode;
|
||||
int for_me, print_channel;
|
||||
char *color;
|
||||
|
||||
chanrec = channel_find(server, target);
|
||||
|
|
@ -71,7 +71,12 @@ static void print_channel_msg(IRC_SERVER_REC *server, const char *msg,
|
|||
nickmode = (!settings_get_bool("show_nickmode") || nickrec == NULL) ? "" :
|
||||
(nickrec->op ? "@" : nickrec->voice ? "+" : " ");
|
||||
|
||||
if (window_item_is_active((WI_ITEM_REC *) chanrec)) {
|
||||
print_channel = !window_item_is_active((WI_ITEM_REC *) chanrec);
|
||||
if (!print_channel && settings_get_bool("print_active_channel") &&
|
||||
window_item_window((WI_ITEM_REC *) chanrec)->items->next != NULL)
|
||||
print_channel = TRUE;
|
||||
|
||||
if (!print_channel) {
|
||||
/* message to active channel in window */
|
||||
if (color != NULL) {
|
||||
/* highlighted nick */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue