diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-06-15 14:22:17 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-06-15 14:22:17 +0200 |
commit | 79e826a028f4b4c62c0c16e20af1fb13a9636324 (patch) | |
tree | 5ddc446344fd7659ae847efc00f7ff70a8e3764a /storage_text.c | |
parent | 5a5c926ec0dffa4b28895929c092089c2a9b9d9f (diff) |
Converted irc->status to binary flags. (This also fixes auto-save-on-quit
that broke because of USTATUS_SHUTDOWN. :-( )
Diffstat (limited to 'storage_text.c')
-rw-r--r-- | storage_text.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage_text.c b/storage_text.c index f807cb3e..506c9f03 100644 --- a/storage_text.c +++ b/storage_text.c @@ -70,7 +70,7 @@ static storage_status_t text_load ( const char *my_nick, const char* password, i FILE *fp; user_t *ru = user_find( irc, ROOT_NICK ); - if( irc->status >= USTATUS_IDENTIFIED ) + if( irc->status & USTATUS_IDENTIFIED ) return( 1 ); g_snprintf( s, 511, "%s%s%s", global.conf->configdir, my_nick, ".accounts" ); @@ -87,7 +87,7 @@ static storage_status_t text_load ( const char *my_nick, const char* password, i /* Do this now. If the user runs with AuthMode = Registered, the account command will not work otherwise. */ - irc->status = USTATUS_IDENTIFIED; + irc->status |= USTATUS_IDENTIFIED; while( fscanf( fp, "%511[^\n]s", s ) > 0 ) { |