Changeset dd34575 for root_commands.c


Ignore:
Timestamp:
2008-04-02T13:28:23Z (16 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
6ff51ff, 85d7b85
Parents:
0db75ad (diff), fa75134 (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 trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r0db75ad rdd34575  
    204204}
    205205
     206void cmd_account_del_yes( gpointer w, void *data )
     207{
     208        account_t *a = data;
     209        irc_t *irc = a->irc;
     210       
     211        if( a->ic )
     212        {
     213                irc_usermsg( irc, "Account is still logged in, can't delete" );
     214        }
     215        else
     216        {
     217                account_del( irc, a );
     218                irc_usermsg( irc, "Account deleted" );
     219        }
     220}
     221
     222void cmd_account_del_no( gpointer w, void *data )
     223{
     224}
     225
    206226static void cmd_account( irc_t *irc, char **cmd )
    207227{
     
    258278                else
    259279                {
    260                         account_del( irc, a );
    261                         irc_usermsg( irc, "Account deleted" );
     280                        char *msg;
     281                       
     282                        msg = g_strdup_printf( "If you remove this account (%s(%s)), BitlBee will "
     283                                               "also forget all your saved nicknames. If you want "
     284                                               "to change your username/password, use the `account "
     285                                               "set' command. Are you sure you want to delete this "
     286                                               "account?", a->prpl->name, a->user );
     287                        query_add( irc, NULL, msg, cmd_account_del_yes, cmd_account_del_no, a );
     288                        g_free( msg );
    262289                }
    263290        }
     
    769796                else
    770797                        irc_usermsg( irc, "%s is empty", set_name );
     798
     799                if( strchr( set_name, '/' ) )
     800                        irc_usermsg( irc, "Warning: / found in setting name, you're probably looking for the `account set' command." );
    771801        }
    772802        else
Note: See TracChangeset for help on using the changeset viewer.