Changeset 8d93b4a


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.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r7c5a3be5 r8d93b4a  
    112112        s = set_add( &b->set, "display_timestamps", "true", set_eval_bool, irc );
    113113        s = set_add( &b->set, "handle_unknown", "add_channel", NULL, irc );
    114         s = set_add( &b->set, "last_version", NULL, NULL, irc );
     114        s = set_add( &b->set, "last_version", "0", NULL, irc );
    115115        s->flags |= SET_HIDDEN;
    116         s->value = g_strdup_printf( "%d", BITLBEE_VERSION_CODE );
    117116        s = set_add( &b->set, "lcnicks", "true", set_eval_bool, irc );
    118117        s = set_add( &b->set, "nick_format", "%-@nick", NULL, irc );
  • 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.