Changeset c1a8a16


Ignore:
Timestamp:
2010-06-05T23:16:52Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
18da20b
Parents:
5a75d15
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r5a75d15 rc1a8a16  
    10191019                }
    10201020        }
    1021         /*
    10221021        else if( g_strcasecmp( cmd[1], "with" ) == 0 )
    10231022        {
    1024                 user_t *u;
     1023                irc_user_t *iu;
    10251024               
    10261025                MIN_ARGS( 2 );
    10271026               
    1028                 if( ( u = user_find( irc, cmd[2] ) ) && u->ic && u->ic->acc->prpl->chat_with )
    1029                 {
    1030                         if( !u->ic->acc->prpl->chat_with( u->ic, u->handle ) )
     1027                if( ( iu = irc_user_by_name( irc, cmd[2] ) ) &&
     1028                    iu->bu && iu->bu->ic->acc->prpl->chat_with )
     1029                {
     1030                        if( !iu->bu->ic->acc->prpl->chat_with( iu->bu->ic, iu->bu->handle ) )
    10311031                        {
    10321032                                irc_usermsg( irc, "(Possible) failure while trying to open "
    1033                                                   "a groupchat with %s.", u->nick );
     1033                                                  "a groupchat with %s.", iu->nick );
    10341034                        }
    10351035                }
     
    10391039                }
    10401040        }
    1041         */
    10421041        else
    10431042        {
Note: See TracChangeset for help on using the changeset viewer.