Changeset f8de26f for root_commands.c


Ignore:
Timestamp:
2006-04-03T21:34:45Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
11bcee9, 36fa9bd
Parents:
e6d6047
Message:

Added "add -tmp" command, which you can use to temporary add a buddy to your
list, like the handle_unknown=add setting does.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    re6d6047 rf8de26f  
    350350{
    351351        account_t *a;
     352        int add_for_real = 1;
     353       
     354        if( g_strcasecmp( cmd[1], "-tmp" ) == 0 )
     355        {
     356                add_for_real = 0;
     357                cmd ++;         /* So evil... :-D */
     358        }
    352359       
    353360        if( !( a = account_get( irc, cmd[1] ) ) )
     
    379386                }
    380387        }
    381         a->gc->prpl->add_buddy( a->gc, cmd[2] );
     388       
     389        /* By making this optional, you can talk to people without having to
     390           add them to your *real* (server-side) contact list. */
     391        if( add_for_real )
     392                a->gc->prpl->add_buddy( a->gc, cmd[2] );
     393               
    382394        add_buddy( a->gc, NULL, cmd[2], cmd[2] );
    383395       
Note: See TracChangeset for help on using the changeset viewer.