From 429bb1e05b8d139050308f7dc58c52fb6d65b6e3 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 19 Nov 2005 16:44:28 +0000 Subject: [PATCH] Using "/VER" in channel now doesn't directly ask CTCP VERSION from it. Channel name or "*" is required as parameter. It still works in query though. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4080 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/irc/fe-irc-commands.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fe-common/irc/fe-irc-commands.c b/src/fe-common/irc/fe-irc-commands.c index 20ee904e..8d98d930 100644 --- a/src/fe-common/irc/fe-irc-commands.c +++ b/src/fe-common/irc/fe-irc-commands.c @@ -315,7 +315,6 @@ static void cmd_ban(const char *data, IRC_SERVER_REC *server, cmd_params_free(free_arg); } -/* SYNTAX: INVITELIST [] */ /* SYNTAX: VER [] */ static void cmd_ver(gchar *data, IRC_SERVER_REC *server, WI_ITEM_REC *item) { @@ -324,8 +323,8 @@ static void cmd_ver(gchar *data, IRC_SERVER_REC *server, WI_ITEM_REC *item) g_return_if_fail(data != NULL); CMD_IRC_SERVER(server); - if (*data == '\0' && !IS_IRC_ITEM(item)) - cmd_return_error(CMDERR_NOT_JOINED); + if (*data == '\0' && !IS_QUERY(item)) + cmd_return_error(CMDERR_NOT_ENOUGH_PARAMS); str = g_strdup_printf("%s VERSION", *data == '\0' ? window_item_get_target(item) : data);