summaryrefslogtreecommitdiff
path: root/src/irc/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-06-20 19:28:19 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-06-20 19:28:19 +0000
commitcb1666cb21cb3cdf2480eb427440537d39f72963 (patch)
tree303eb7ac4329dcb96a385771f59f0c850c85e63d /src/irc/core
parentd5d9a9d7b8844e7918aeb075fec6c12583df599b (diff)
downloadirssi-cb1666cb21cb3cdf2480eb427440537d39f72963.zip
/command -option fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@374 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core')
-rw-r--r--src/irc/core/irc-commands.c10
1 files 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);