diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/relay/relay-client-irc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/relay/relay-client-irc.c b/src/plugins/relay/relay-client-irc.c index 766c9e06d..63a7e57b9 100644 --- a/src/plugins/relay/relay-client-irc.c +++ b/src/plugins/relay/relay-client-irc.c @@ -319,6 +319,8 @@ relay_client_irc_signal_irc_outtags_cb (void *data, const char *signal, client = (struct t_relay_client *)data; + tags = NULL; + message = strdup ((char *)signal_data); if (!message) goto end; @@ -326,6 +328,8 @@ relay_client_irc_signal_irc_outtags_cb (void *data, const char *signal, if (pos) pos[0] = '\0'; + ptr_message = message; + if (weechat_relay_plugin->debug >= 2) { weechat_printf (NULL, "%s: irc_out: client: %s, message: %s", @@ -334,9 +338,6 @@ relay_client_irc_signal_irc_outtags_cb (void *data, const char *signal, message); } - tags = NULL; - ptr_message = message; - pos = strchr (ptr_message, ';'); if (pos) { |