diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-11 10:23:34 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-03-11 10:23:34 +0100 |
commit | 86b1ab20b56568ecf7e4599daa0afe6db5f2ac98 (patch) | |
tree | 7e8d34949f5dec3880a0be1b37c682e31331285d /src/plugins/irc/irc-protocol.c | |
parent | 7ec6092ba978054fde76dd6dda4c331955348bd1 (diff) | |
download | weechat-86b1ab20b56568ecf7e4599daa0afe6db5f2ac98.zip |
Display IRC command 324 (channel modes) on server buffer if channel is not open
Diffstat (limited to 'src/plugins/irc/irc-protocol.c')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 06dd34d1f..0341ccdba 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -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; } |