From cb1666cb21cb3cdf2480eb427440537d39f72963 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 20 Jun 2000 19:28:19 +0000 Subject: [PATCH] /command -option fixes git-svn-id: http://svn.irssi.org/repos/irssi/trunk@374 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/irc-commands.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/irc/core/irc-commands.c b/src/irc/core/irc-commands.c index 9a81f104..6d7626de 100644 --- a/src/irc/core/irc-commands.c +++ b/src/irc/core/irc-commands.c @@ -312,7 +312,7 @@ static void cmd_join(const char *data, IRC_SERVER_REC *server) PARAM_FLAG_GETREST, "join", &optlist, &channels)) return; - if (g_hash_table_lookup(optlist, "-invite")) { + if (g_hash_table_lookup(optlist, "invite")) { if (server->last_invite != NULL) channels_join(server, server->last_invite, FALSE); } else { @@ -395,7 +395,7 @@ static void cmd_topic(const char *data, IRC_SERVER_REC *server, WI_IRC_REC *item item, "topic", &optlist, &channame, &topic)) return; - irc_send_cmdv(server, *topic == '\0' && g_hash_table_lookup(optlist, "-d") == NULL ? + irc_send_cmdv(server, *topic == '\0' && g_hash_table_lookup(optlist, "d") == NULL ? "TOPIC %s" : "TOPIC %s :%s", channame, topic); cmd_params_free(free_arg); @@ -436,10 +436,10 @@ static void cmd_list(const char *data, IRC_SERVER_REC *server, WI_IRC_REC *item) cmd_return_error(CMDERR_NOT_CONNECTED); if (!cmd_get_params(data, &free_arg, 1 | PARAM_FLAG_OPTIONS | - PARAM_FLAG_GETREST, &optlist, &str)) + PARAM_FLAG_GETREST, "list", &optlist, &str)) return; - if (*str == '\0' && g_hash_table_lookup(optlist, "-yes") == NULL) + if (*str == '\0' && g_hash_table_lookup(optlist, "yes") == NULL) cmd_param_error(CMDERR_NOT_GOOD_IDEA); irc_send_cmdv(server, "LIST %s", str); @@ -659,7 +659,7 @@ static void cmd_away(const char *data, IRC_SERVER_REC *server) if (!cmd_get_params(data, &free_arg, 1 | PARAM_FLAG_OPTIONS | PARAM_FLAG_GETREST, "away", &optlist, &reason)) return; - if (g_hash_table_lookup(optlist, "-one") != NULL) + if (g_hash_table_lookup(optlist, "one") != NULL) server_send_away(server, reason); else g_slist_foreach(servers, (GFunc) server_send_away, reason);