summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/irc/irc-ctcp.c8
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)