Changeset 8d93b4a for root_commands.c


Ignore:
Timestamp:
2010-10-22T00:50:34Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
03e6c52
Parents:
7c5a3be5
Message:

Oops. Just in time I noticed the whatsnew code doesn't kick in for pre-1.3
accounts. Fixed now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r7c5a3be5 r8d93b4a  
    206206static void cmd_register( irc_t *irc, char **cmd )
    207207{
     208        char s[16];
     209       
    208210        if( global.conf->authmode == AUTHMODE_REGISTERED )
    209211        {
     
    222224                        irc->status |= USTATUS_IDENTIFIED;
    223225                        irc_umode_set( irc, "+R", 1 );
     226                       
     227                        /* Set this var now, or anyone who logs in to his/her
     228                           newly created account for the first time gets the
     229                           whatsnew story. */
     230                        g_snprintf( s, sizeof( s ), "%d", BITLBEE_VERSION_CODE );
     231                        set_setstr( &irc->b->set, "last_version", s );
    224232                        break;
    225233
Note: See TracChangeset for help on using the changeset viewer.