1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 12:56:37 +02:00

irc: add alias "ctcp" for target buffer of CTCP messages

This commit is contained in:
Sebastien Helleu
2012-01-27 18:18:35 +01:00
parent f8a25b4299
commit b6a7777aa0
8 changed files with 53 additions and 12 deletions
+4 -1
View File
@@ -93,7 +93,10 @@ irc_msgbuffer_get_target_buffer (struct t_irc_server *server, const char *nick,
struct t_irc_channel *ptr_channel;
struct t_weechat_plugin *buffer_plugin;
ptr_option = irc_msgbuffer_get_option (server, message);
ptr_option = NULL;
if (message && message[0])
ptr_option = irc_msgbuffer_get_option (server, message);
if (!ptr_option && alias && alias[0])
ptr_option = irc_msgbuffer_get_option (server, alias);