Changeset b99296f for storage_text.c
- Timestamp:
- 2008-09-07T17:13:49Z (16 years ago)
- Branches:
- master
- Children:
- 92e90b7
- Parents:
- 0a4f6f4 (diff), ba3a8a5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
storage_text.c
r0a4f6f4 rb99296f 44 44 } 45 45 46 static storage_status_t text_load ( const char *my_nick, const char* password, irc_t *irc)46 static storage_status_t text_load( irc_t *irc, const char* password ) 47 47 { 48 48 char s[512]; … … 54 54 account_t *acc, *acc_lookup[9]; 55 55 56 if( irc->status & USTATUS_IDENTIFIED ) 57 return( 1 ); 58 59 g_snprintf( s, 511, "%s%s%s", global.conf->configdir, my_nick, ".accounts" ); 56 g_snprintf( s, 511, "%s%s%s", global.conf->configdir, irc->nick, ".accounts" ); 60 57 fp = fopen( s, "r" ); 61 58 if( !fp ) return STORAGE_NO_SUCH_USER; … … 68 65 return STORAGE_INVALID_PASSWORD; 69 66 } 70 71 /* Do this now. If the user runs with AuthMode = Registered, the72 account command will not work otherwise. */73 irc->status |= USTATUS_IDENTIFIED;74 67 75 68 while( fscanf( fp, "%511[^\n]s", s ) > 0 ) … … 101 94 } 102 95 103 g_snprintf( s, 511, "%s%s%s", global.conf->configdir, my_nick, ".nicks" );96 g_snprintf( s, 511, "%s%s%s", global.conf->configdir, irc->nick, ".nicks" ); 104 97 fp = fopen( s, "r" ); 105 98 if( !fp ) return STORAGE_NO_SUCH_USER;
Note: See TracChangeset
for help on using the changeset viewer.