diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-31 22:05:36 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-31 22:05:36 +0200 |
commit | 83586911a0aa768ed196051950ebd8ffce37d467 (patch) | |
tree | a4a942ca4cbc0dc6ea2dae9ac469feb2286d4cb6 /irc_commands.c | |
parent | ad2d8bccb2a27688845d87b59eddff976ade5ef7 (diff) |
Added root_command_add() and use it to create the "otr" command.
Diffstat (limited to 'irc_commands.c')
-rw-r--r-- | irc_commands.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 ); |