diff options
author | Timo Sirainen <cras@irssi.org> | 2005-11-19 16:44:28 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2005-11-19 16:44:28 +0000 |
commit | 429bb1e05b8d139050308f7dc58c52fb6d65b6e3 (patch) | |
tree | 3881174f06063175b97103a90f3969c84d2f9a13 /src/fe-common/irc/fe-irc-commands.c | |
parent | 2e754796374179f7809a98a57502404b79fa9cd1 (diff) | |
download | irssi-429bb1e05b8d139050308f7dc58c52fb6d65b6e3.zip |
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
Diffstat (limited to 'src/fe-common/irc/fe-irc-commands.c')
-rw-r--r-- | src/fe-common/irc/fe-irc-commands.c | 5 |
1 files 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 [<channel>] */ /* SYNTAX: VER [<target>] */ 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); |