Changeset 90bbb0e


Ignore:
Timestamp:
2006-06-26T16:50:47Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
b3c467b
Parents:
471573f
Message:

Moved the call to "account on" to the right place.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r471573f r90bbb0e  
    127127}
    128128
     129static void cmd_account( irc_t *irc, char **cmd );
     130
    129131static void cmd_identify( irc_t *irc, char **cmd )
    130132{
    131133        storage_status_t status = storage_load( irc->nick, cmd[1], irc );
     134        char *account_on[] = { "account", "on", NULL };
    132135       
    133136        switch (status) {
     
    141144                irc_usermsg( irc, "Password accepted, settings and accounts loaded" );
    142145                irc_umode_set( irc, "+R", 1 );
     146                if( set_getint( irc, "auto_connect" ) )
     147                        cmd_account( irc, account_on );
    143148                break;
    144149        case STORAGE_OTHER_ERROR:
  • storage_text.c

    r471573f r90bbb0e  
    116116        }
    117117        fclose( fp );
    118        
    119         if( set_getint( irc, "auto_connect" ) )
    120         {
    121                 strcpy( s, "account on" );      /* Can't do this directly because r_c_s alters the string */
    122                 root_command_string( irc, ru, s, 0 );
    123         }
    124118       
    125119        return STORAGE_OK;
  • storage_xml.c

    r471573f r90bbb0e  
    333333        irc->status |= USTATUS_IDENTIFIED;
    334334       
    335         /* TODO: This really shouldn't be here, I think... */
    336         if( set_getint( irc, "auto_connect" ) )
    337         {
    338                 /* Can't do this directly because r_c_s alters the string */
    339                 strcpy( buf, "account on" );
    340                 root_command_string( irc, NULL, buf, 0 );
    341         }
    342        
    343335        return STORAGE_OK;
    344336}
Note: See TracChangeset for help on using the changeset viewer.