aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-06-06 00:16:52 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-06-06 00:16:52 +0100
commitc1a8a163703a903c7a69e06286013f12d6bf865e (patch)
tree60b6784c24f819195263c55129c162ea17825b70
parent5a75d1586478f78446b6c78b161572fc7cabe4d9 (diff)
Restored the "chat with" command, let's keep it around at least for now.
Maybe it's nice to keep since it's only one command, as opposed to /join + /invite.
-rw-r--r--root_commands.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/root_commands.c b/root_commands.c
index 7c54e272..eb42c888 100644
--- a/root_commands.c
+++ b/root_commands.c
@@ -1018,19 +1018,19 @@ static void cmd_chat( irc_t *irc, char **cmd )
irc_usermsg( irc, "Could not add chatroom." );
}
}
- /*
else if( g_strcasecmp( cmd[1], "with" ) == 0 )
{
- user_t *u;
+ irc_user_t *iu;
MIN_ARGS( 2 );
- if( ( u = user_find( irc, cmd[2] ) ) && u->ic && u->ic->acc->prpl->chat_with )
+ if( ( iu = irc_user_by_name( irc, cmd[2] ) ) &&
+ iu->bu && iu->bu->ic->acc->prpl->chat_with )
{
- if( !u->ic->acc->prpl->chat_with( u->ic, u->handle ) )
+ if( !iu->bu->ic->acc->prpl->chat_with( iu->bu->ic, iu->bu->handle ) )
{
irc_usermsg( irc, "(Possible) failure while trying to open "
- "a groupchat with %s.", u->nick );
+ "a groupchat with %s.", iu->nick );
}
}
else
@@ -1038,7 +1038,6 @@ static void cmd_chat( irc_t *irc, char **cmd )
irc_usermsg( irc, "Can't open a groupchat with %s.", cmd[2] );
}
}
- */
else
{
irc_usermsg( irc, "Unknown command: %s %s. Please use \x02help commands\x02 to get a list of available commands.", "chat", cmd[1] );