Changeset 9779c18 for root_commands.c


Ignore:
Timestamp:
2006-06-03T20:20:43Z (18 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
5973412
Parents:
a15c097 (diff), fb62f81f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

[merge] Wilmer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    ra15c097 r9779c18  
    5757                                s --;
    5858                        }
     59                        else
     60                        {
     61                                break;
     62                        }
     63                }
     64                else if( *s == '\\' && ( ( !q && s[1] ) || ( q && q == s[1] ) ) )
     65                {
     66                        char *cpy;
     67                       
     68                        for( cpy = s; *cpy; cpy ++ )
     69                                cpy[0] = cpy[1];
    5970                }
    6071                else if( *s == q )
     
    245256                int i = 0;
    246257               
     258                if( strchr( irc->umode, 'b' ) )
     259                        irc_usermsg( irc, "Account list:" );
     260               
    247261                for( a = irc->accounts; a; a = a->next )
    248262                {
     
    347361{
    348362        account_t *a;
     363        int add_for_real = 1;
     364       
     365        if( g_strcasecmp( cmd[1], "-tmp" ) == 0 )
     366        {
     367                add_for_real = 0;
     368                cmd ++;         /* So evil... :-D */
     369        }
    349370       
    350371        if( !( a = account_get( irc, cmd[1] ) ) )
     
    376397                }
    377398        }
    378         a->gc->prpl->add_buddy( a->gc, cmd[2] );
     399       
     400        /* By making this optional, you can talk to people without having to
     401           add them to your *real* (server-side) contact list. */
     402        if( add_for_real )
     403                a->gc->prpl->add_buddy( a->gc, cmd[2] );
     404               
    379405        add_buddy( a->gc, NULL, cmd[2], cmd[2] );
    380406       
     
    492518                        format = "%s\t%s";
    493519                else
    494                         format = "%-32.32  %-16.16s";
     520                        format = "%-32.32s  %-16.16s";
    495521               
    496522                irc_usermsg( irc, format, "Handle", "Nickname" );
     
    532558        else
    533559        {
    534                 gc->prpl->rem_permit( gc, cmd[2] );
    535                 gc->prpl->add_deny( gc, cmd[2] );
    536                 irc_usermsg( irc, "Buddy `%s' moved from your permit- to your deny-list", cmd[2] );
     560                bim_rem_allow( gc, cmd[2] );
     561                bim_add_block( gc, cmd[2] );
     562                irc_usermsg( irc, "Buddy `%s' moved from your allow- to your block-list", cmd[2] );
    537563        }
    538564}
     
    551577                        format = "%s\t%s";
    552578                else
    553                         format = "%-32.32  %-16.16s";
     579                        format = "%-32.32s  %-16.16s";
    554580               
    555581                irc_usermsg( irc, format, "Handle", "Nickname" );
     
    591617        else
    592618        {
    593                 gc->prpl->rem_deny( gc, cmd[2] );
    594                 gc->prpl->add_permit( gc, cmd[2] );
    595                
    596                 irc_usermsg( irc, "Buddy `%s' moved from your deny- to your permit-list", cmd[2] );
     619                bim_rem_block( gc, cmd[2] );
     620                bim_add_allow( gc, cmd[2] );
     621               
     622                irc_usermsg( irc, "Buddy `%s' moved from your block- to your allow-list", cmd[2] );
    597623        }
    598624}
     
    753779        else
    754780        {
    755                 char utf8[1024];
    756                
    757781                irc_usermsg( irc, "Setting your name to `%s'", cmd[2] );
    758782               
    759                 if( g_strncasecmp( set_getstr( irc, "charset" ), "none", 4 ) != 0 &&
    760                     do_iconv( set_getstr( irc, "charset" ), "UTF-8", cmd[2], utf8, 0, 1024 ) != -1 )
    761                         a->gc->prpl->set_info( a->gc, utf8 );
    762                 else
    763                         a->gc->prpl->set_info( a->gc, cmd[2] );
     783                a->gc->prpl->set_info( a->gc, cmd[2] );
    764784        }
    765785}
Note: See TracChangeset for help on using the changeset viewer.