Changeset 75a4b85 for root_commands.c


Ignore:
Timestamp:
2006-07-14T09:25:48Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
eda0270
Parents:
7e3592e
Message:

Fixed a memory leak, added a check for valid Jabber handles, and updated
documentation (added information about "account set" and sorted the list
of settings because it was a bit too random).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r7e3592e r75a4b85  
    377377                if( a == NULL )
    378378                {
     379                        g_free( acc_handle );
    379380                        irc_usermsg( irc, "Invalid account" );
    380381                        return;
     
    387388                        if( a->gc && s && s->flags & ACC_SET_OFFLINE_ONLY )
    388389                        {
     390                                g_free( acc_handle );
    389391                                irc_usermsg( irc, "This setting can only be changed when the account is %s-line", "off" );
    390392                                return;
     
    392394                        else if( !a->gc && s && s->flags & ACC_SET_ONLINE_ONLY )
    393395                        {
     396                                g_free( acc_handle );
    394397                                irc_usermsg( irc, "This setting can only be changed when the account is %s-line", "on" );
    395398                                return;
Note: See TracChangeset for help on using the changeset viewer.