This patch will, instead of assuming the active window as target for a
/ping, require an argument.  This is to prevent accidental /ping of
entire channels.

Index: src/irc/core/irc-commands.c
===================================================================
--- src/irc/core/irc-commands.c (revision 4648)
+++ src/irc/core/irc-commands.c (working copy)
@@ -513,9 +513,7 @@
         CMD_IRC_SERVER(server);

        if (*data == '\0') {
-               if (!IS_QUERY(item))
-                       cmd_return_error(CMDERR_NOT_ENOUGH_PARAMS);
-               data = window_item_get_target(item);
+               cmd_return_error(CMDERR_NOT_ENOUGH_PARAMS);
        }

        g_get_current_time(&tv);

Reply via email to