1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 17:23:15 +02:00

irc: use parsed command parameters in "mode" command callback

This commit is contained in:
Sébastien Helleu
2021-10-11 00:53:05 +02:00
parent 5a5c2cbd1a
commit a1a4d627e1
2 changed files with 32 additions and 17 deletions
+11
View File
@@ -125,6 +125,17 @@
return WEECHAT_RC_ERROR; \
}
#define IRC_PROTOCOL_CHECK_HOST \
if (!address) \
{ \
weechat_printf (server->buffer, \
_("%s%s: \"%s\" command received without " \
"host"), \
weechat_prefix ("error"), IRC_PLUGIN_NAME, \
command); \
return WEECHAT_RC_ERROR; \
}
struct t_irc_server;
typedef int (t_irc_recv_func)(struct t_irc_server *server,