From 83586911a0aa768ed196051950ebd8ffce37d467 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 31 Aug 2010 22:05:36 +0200 Subject: Added root_command_add() and use it to create the "otr" command. --- irc_commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'irc_commands.c') diff --git a/irc_commands.c b/irc_commands.c index 4b1bc741..9730a288 100644 --- a/irc_commands.c +++ b/irc_commands.c @@ -625,8 +625,8 @@ static void irc_cmd_completions( irc_t *irc, char **cmd ) irc_send_msg_raw( irc->root, "NOTICE", irc->user->nick, "COMPLETIONS OK" ); - for( i = 0; commands[i].command; i ++ ) - irc_send_msg_f( irc->root, "NOTICE", irc->user->nick, "COMPLETIONS %s", commands[i].command ); + for( i = 0; root_commands[i].command; i ++ ) + irc_send_msg_f( irc->root, "NOTICE", irc->user->nick, "COMPLETIONS %s", root_commands[i].command ); for( h = global.help; h; h = h->next ) irc_send_msg_f( irc->root, "NOTICE", irc->user->nick, "COMPLETIONS help %s", h->title ); -- cgit v1.2.3