From 7cd2e8a6c0ba091f56e6ee8bc087c799faee3662 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Wed, 23 Jun 2010 00:43:36 +0100 Subject: Automatically call the "channel" command for the now-gone chat subcommands. --- root_commands.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'root_commands.c') 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] ); -- cgit v1.2.3