diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2014-02-13 15:04:54 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2014-02-13 15:04:54 +0100 |
commit | e36c49995b8bb3b21784db26281e81ce07e191b9 (patch) | |
tree | 31973a51bbb5f16ea2117b744f3bd66b5a8a3746 /src/plugins/trigger | |
parent | 65b40ab5cc49eb7827e1800cd4d42477a200c997 (diff) | |
download | weechat-e36c49995b8bb3b21784db26281e81ce07e191b9.zip |
trigger: add "server" in hashtable after parsing of IRC message
Diffstat (limited to 'src/plugins/trigger')
-rw-r--r-- | src/plugins/trigger/trigger-callback.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/trigger/trigger-callback.c b/src/plugins/trigger/trigger-callback.c index ba181ff8f..859255a3a 100644 --- a/src/plugins/trigger/trigger-callback.c +++ b/src/plugins/trigger/trigger-callback.c @@ -360,8 +360,12 @@ trigger_callback_signal_cb (void *data, const char *signal, } } if (irc_server && ptr_irc_message) + { extra_vars = trigger_callback_irc_message_parse (ptr_irc_message, irc_server); + if (extra_vars) + weechat_hashtable_set (extra_vars, "server", irc_server); + } if (irc_server) free (irc_server); @@ -477,6 +481,8 @@ trigger_callback_modifier_cb (void *data, const char *modifier, { extra_vars = trigger_callback_irc_message_parse (string, modifier_data); + if (extra_vars) + weechat_hashtable_set (extra_vars, "server", modifier_data); } TRIGGER_CALLBACK_CB_NEW_POINTERS; |