1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

Display IRC command 324 (channel modes) on server buffer if channel is not open

This commit is contained in:
Sebastien Helleu
2010-03-11 10:23:34 +01:00
parent 7ec6092ba9
commit 86b1ab20b5
10 changed files with 103 additions and 45 deletions
+15
View File
@@ -2510,6 +2510,21 @@ irc_protocol_cmd_324 (struct t_irc_server *server, const char *command,
}
}
}
else
{
weechat_printf_tags (irc_msgbuffer_get_target_buffer (server, NULL,
command, NULL,
NULL),
irc_protocol_tags (command, "irc_numeric"),
_("%sMode %s%s %s[%s%s%s]"),
weechat_prefix ("network"),
IRC_COLOR_CHAT_CHANNEL,
argv[3],
IRC_COLOR_CHAT_DELIMITERS,
IRC_COLOR_CHAT,
(argv_eol[4][0] == ':') ? argv_eol[4] + 1 : argv_eol[4],
IRC_COLOR_CHAT_DELIMITERS);
}
return WEECHAT_RC_OK;
}