summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-01-05 15:06:12 +0100
committerSebastien Helleu <flashcode@flashtux.org>2011-01-05 15:06:12 +0100
commit7dbc797789a5211191bcdc96ec3a411d3f70fa00 (patch)
treef9aa5050dba92a72b0f32ea0518b59862f82b0e7
parent25fe7a53a1f23302ef1152fa90c9d7d5b0f05bdd (diff)
downloadweechat-7dbc797789a5211191bcdc96ec3a411d3f70fa00.zip
Silently ignore IRC PRIVMSG message if target channel is not found
-rw-r--r--src/plugins/irc/irc-protocol.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index e321d6981..1ba9411d5 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -547,7 +547,7 @@ IRC_PROTOCOL_CALLBACK(kick)
"\"%s\" command"),
weechat_prefix ("error"), IRC_PLUGIN_NAME, argv[2],
"kick");
- return WEECHAT_RC_ERROR;
+ return WEECHAT_RC_OK;
}
ptr_nick = irc_nick_search (ptr_channel, nick);
@@ -1361,15 +1361,6 @@ IRC_PROTOCOL_CALLBACK(privmsg)
irc_channel_nick_speaking_time_add (ptr_channel, nick,
time (NULL));
}
- else
- {
- weechat_printf (server->buffer,
- _("%s%s: channel \"%s\" not found for \"%s\" "
- "command"),
- weechat_prefix ("error"),
- IRC_PLUGIN_NAME, argv[2], "privmsg");
- return WEECHAT_RC_ERROR;
- }
}
else
{
@@ -1627,7 +1618,7 @@ IRC_PROTOCOL_CALLBACK(topic)
weechat_printf (server->buffer,
_("%s%s: \"%s\" command received without channel"),
weechat_prefix ("error"), IRC_PLUGIN_NAME, "topic");
- return WEECHAT_RC_ERROR;
+ return WEECHAT_RC_OK;
}
pos_topic = (argc > 3) ?