summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-protocol.c10
-rw-r--r--src/plugins/irc/irc-protocol.h22
2 files changed, 0 insertions, 32 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index fffc4d6ab..d391ade53 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -1163,7 +1163,6 @@ IRC_PROTOCOL_CALLBACK(chghost)
IRC_PROTOCOL_MIN_PARAMS(2);
IRC_PROTOCOL_CHECK_NICK;
- IRC_PROTOCOL_CHECK_ADDRESS;
local_chghost = (irc_server_strcasecmp (server, nick, server->nick) == 0);
@@ -1364,7 +1363,6 @@ IRC_PROTOCOL_CALLBACK(invite)
{
IRC_PROTOCOL_MIN_PARAMS(2);
IRC_PROTOCOL_CHECK_NICK;
- IRC_PROTOCOL_CHECK_ADDRESS;
if (ignored)
return WEECHAT_RC_OK;
@@ -1431,7 +1429,6 @@ IRC_PROTOCOL_CALLBACK(join)
IRC_PROTOCOL_MIN_PARAMS(1);
IRC_PROTOCOL_CHECK_NICK;
- IRC_PROTOCOL_CHECK_ADDRESS;
local_join = (irc_server_strcasecmp (server, nick, server->nick) == 0);
@@ -1607,7 +1604,6 @@ IRC_PROTOCOL_CALLBACK(kick)
IRC_PROTOCOL_MIN_PARAMS(2);
IRC_PROTOCOL_CHECK_NICK;
- IRC_PROTOCOL_CHECK_ADDRESS;
pos_comment = (num_params > 2) ? params[2] : NULL;
@@ -1729,7 +1725,6 @@ IRC_PROTOCOL_CALLBACK(kill)
IRC_PROTOCOL_MIN_PARAMS(1);
IRC_PROTOCOL_CHECK_NICK;
- IRC_PROTOCOL_CHECK_ADDRESS;
pos_comment = (num_params > 1) ? params[1] : NULL;
@@ -1818,8 +1813,6 @@ IRC_PROTOCOL_CALLBACK(mode)
IRC_PROTOCOL_MIN_PARAMS(2);
IRC_PROTOCOL_CHECK_NICK;
- IRC_PROTOCOL_CHECK_ADDRESS;
- IRC_PROTOCOL_CHECK_HOST;
msg_modes_args = (num_params > 2) ?
irc_protocol_string_params (params, 2, num_params - 1) : NULL;
@@ -1903,8 +1896,6 @@ IRC_PROTOCOL_CALLBACK(nick)
IRC_PROTOCOL_MIN_PARAMS(1);
IRC_PROTOCOL_CHECK_NICK;
- IRC_PROTOCOL_CHECK_ADDRESS;
- IRC_PROTOCOL_CHECK_HOST;
if (!params[0][0])
return WEECHAT_RC_OK;
@@ -2374,7 +2365,6 @@ IRC_PROTOCOL_CALLBACK(part)
IRC_PROTOCOL_MIN_PARAMS(1);
IRC_PROTOCOL_CHECK_NICK;
- IRC_PROTOCOL_CHECK_ADDRESS;
ptr_channel = irc_channel_search (server, params[0]);
if (!ptr_channel)
diff --git a/src/plugins/irc/irc-protocol.h b/src/plugins/irc/irc-protocol.h
index 81005ad63..8ac4f7c4b 100644
--- a/src/plugins/irc/irc-protocol.h
+++ b/src/plugins/irc/irc-protocol.h
@@ -114,28 +114,6 @@
return WEECHAT_RC_ERROR; \
}
-#define IRC_PROTOCOL_CHECK_ADDRESS \
- if (!address) \
- { \
- weechat_printf (server->buffer, \
- _("%s%s: \"%s\" command received without " \
- "address"), \
- weechat_prefix ("error"), IRC_PLUGIN_NAME, \
- command); \
- 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,