aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-06-23 00:43:36 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-06-23 00:43:36 +0100
commit7cd2e8a6c0ba091f56e6ee8bc087c799faee3662 (patch)
tree5f55715ef914a9da58733e77292e7b636f75300b
parent6b90431eba3820aaa5535523622ba45ca65055f4 (diff)
Automatically call the "channel" command for the now-gone chat subcommands.
-rw-r--r--root_commands.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/root_commands.c b/root_commands.c
index 10ce68e1..ea110467 100644
--- a/root_commands.c
+++ b/root_commands.c
@@ -1093,6 +1093,13 @@ static void cmd_chat( irc_t *irc, char **cmd )
irc_usermsg( irc, "Can't open a groupchat with %s.", cmd[2] );
}
}
+ else if( g_strcasecmp( cmd[1], "list" ) == 0 ||
+ g_strcasecmp( cmd[1], "set" ) == 0 ||
+ g_strcasecmp( cmd[1], "del" ) == 0 )
+ {
+ irc_usermsg( irc, "Warning: The \002chat\002 command was mostly replaced with the \002channel\002 command." );
+ cmd_channel( irc, cmd );
+ }
else
{
irc_usermsg( irc, "Unknown command: %s %s. Please use \x02help commands\x02 to get a list of available commands.", "chat", cmd[1] );