diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-06-09 00:43:13 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-06-09 00:43:13 +0100 |
commit | 46d215d562f8e1aba2b24e2d1feab27337956d50 (patch) | |
tree | d2c4edcb1c8ca69e78402dc955de3b118686f515 /irc_commands.c | |
parent | d7db3468f95d6b8ed2a161c71cb5b6ab1a7b5895 (diff) |
Allow moving contacts around between groups. Works with at least Jabber,
will check the others now.
Diffstat (limited to 'irc_commands.c')
-rw-r--r-- | irc_commands.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/irc_commands.c b/irc_commands.c index 6c425dee..ac851adf 100644 --- a/irc_commands.c +++ b/irc_commands.c @@ -402,8 +402,10 @@ static void irc_cmd_invite( irc_t *irc, char **cmd ) return; } - if( !ic->f->invite || !ic->f->invite( ic, iu ) ) + if( !ic->f->invite ) irc_send_num( irc, 482, "%s :Can't invite people here", cmd[2] ); + else if( ic->f->invite( ic, iu ) ) + irc_send_num( irc, 341, "%s %s", iu->nick, ic->name ); } static void irc_cmd_userhost( irc_t *irc, char **cmd ) |