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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user