mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 07:02:12 +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
|
|
@ -98,7 +98,7 @@ static void cmd_msg(gchar *data, IRC_SERVER_REC *server, WI_ITEM_REC *item)
|
|||
const char *nickmode;
|
||||
char *target, *msg, *freestr, *newtarget;
|
||||
void *free_arg;
|
||||
int free_ret;
|
||||
int free_ret, print_channel;
|
||||
|
||||
g_return_if_fail(data != NULL);
|
||||
|
||||
|
|
@ -148,7 +148,14 @@ static void cmd_msg(gchar *data, IRC_SERVER_REC *server, WI_ITEM_REC *item)
|
|||
nickrec->op ? "@" : nickrec->voice ? "+" : " ";
|
||||
|
||||
window = channel == NULL ? NULL : window_item_window((WI_ITEM_REC *) channel);
|
||||
if (window != NULL && window->active == (WI_ITEM_REC *) channel)
|
||||
|
||||
print_channel = window == NULL ||
|
||||
window->active != (WI_ITEM_REC *) channel;
|
||||
if (!print_channel && settings_get_bool("print_active_channel") &&
|
||||
window != NULL && g_slist_length(window->items) > 1)
|
||||
print_channel = TRUE;
|
||||
|
||||
if (!print_channel)
|
||||
{
|
||||
printformat(server, target, MSGLEVEL_PUBLIC | MSGLEVEL_NOHILIGHT,
|
||||
IRCTXT_OWN_MSG, server->nick, msg, nickmode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue