summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-notify.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-10-10 18:05:24 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:30 +0200
commitc4b4d80936b5b1fe9f179a481f5c3a325ff8e42e (patch)
tree73946bd375229ca0682852a68561e17c45e6c3e8 /src/plugins/irc/irc-notify.c
parentf0898eae64be268dbd6ecab0037f23b818dbaf1b (diff)
downloadweechat-c4b4d80936b5b1fe9f179a481f5c3a325ff8e42e.zip
irc: parse and return command parameters in message parser
Diffstat (limited to 'src/plugins/irc/irc-notify.c')
-rw-r--r--src/plugins/irc/irc-notify.c41
1 files changed, 34 insertions, 7 deletions
diff --git a/src/plugins/irc/irc-notify.c b/src/plugins/irc/irc-notify.c
index 53695f173..56d8a2860 100644
--- a/src/plugins/irc/irc-notify.c
+++ b/src/plugins/irc/irc-notify.c
@@ -868,9 +868,23 @@ irc_notify_hsignal_cb (const void *pointer, void *data, const char *signal,
}
for (i = 0; i < num_messages; i++)
{
- irc_message_parse (ptr_server, messages[i], NULL, NULL, NULL,
- NULL, NULL, NULL, NULL, &arguments, NULL,
- NULL, NULL, NULL, NULL);
+ irc_message_parse (ptr_server,
+ messages[i],
+ NULL, /* tags */
+ NULL, /* message_without_tags */
+ NULL, /* nick */
+ NULL, /* user */
+ NULL, /* host */
+ NULL, /* command */
+ NULL, /* channel */
+ &arguments,
+ NULL, /* text */
+ NULL, /* params */
+ NULL, /* num_params */
+ NULL, /* pos_command */
+ NULL, /* pos_arguments */
+ NULL, /* pos_channel */
+ NULL); /* pos_text */
if (arguments)
{
pos = strchr (arguments, ' ');
@@ -966,10 +980,23 @@ irc_notify_hsignal_cb (const void *pointer, void *data, const char *signal,
{
for (i = 0; i < num_messages; i++)
{
- irc_message_parse (ptr_server, messages[i], NULL, NULL,
- NULL, NULL, NULL, &irc_cmd, NULL,
- &arguments, NULL, NULL, NULL, NULL,
- NULL);
+ irc_message_parse (ptr_server,
+ messages[i],
+ NULL, /* tags */
+ NULL, /* message_without_tags */
+ NULL, /* nick */
+ NULL, /* user */
+ NULL, /* host */
+ &irc_cmd,
+ NULL, /* channel */
+ &arguments,
+ NULL, /* text */
+ NULL, /* params */
+ NULL, /* num_params */
+ NULL, /* pos_command */
+ NULL, /* pos_arguments */
+ NULL, /* pos_channel */
+ NULL); /* pos_text */
if (irc_cmd && arguments)
{
if (strcmp (irc_cmd, "401") == 0)