diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-01-09 23:43:00 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-01-09 23:43:00 +0100 |
commit | d719b20fa5b2c9faf8e4ff7ea634ce026dc8553f (patch) | |
tree | 3e8734ed1ec4c4082fe483a02260f5e631d0bc10 /src/plugins | |
parent | ad5418821379094cb0d2d37833ce5c4ec30c33c9 (diff) | |
download | weechat-d719b20fa5b2c9faf8e4ff7ea634ce026dc8553f.zip |
Allow blocking of IRC CTCP PING requests
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc-ctcp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-ctcp.c b/src/plugins/irc/irc-ctcp.c index 20e09cb1a..2ad11f114 100644 --- a/src/plugins/irc/irc-ctcp.c +++ b/src/plugins/irc/irc-ctcp.c @@ -897,10 +897,14 @@ irc_ctcp_recv (struct t_irc_server *server, const char *command, /* CTCP PING */ else if (strcmp (arguments + 1, "PING") == 0) { + reply = irc_ctcp_get_reply (server, arguments + 1); irc_ctcp_display_request (server, command, channel, nick, arguments + 1, pos_args); - irc_ctcp_reply_to_nick (server, command, channel, nick, - arguments + 1, pos_args); + if (!reply || reply[0]) + { + irc_ctcp_reply_to_nick (server, command, channel, nick, + arguments + 1, pos_args); + } } /* CTCP DCC */ else if (strcmp (arguments + 1, "DCC") == 0) |