Changeset 8e6ecfe for root_commands.c
- Timestamp:
- 2016-03-25T18:07:53Z (8 years ago)
- Branches:
- master
- Children:
- a6005da
- Parents:
- 446a23e
- git-author:
- Dennis Kaarsemaker <dennis@…> (23-02-16 18:41:34)
- git-committer:
- Dennis Kaarsemaker <dennis@…> (25-03-16 18:07:53)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
root_commands.c
r446a23e r8e6ecfe 143 143 } 144 144 145 if (load) { 145 status = auth_check_pass(irc, irc->user->nick, password); 146 if (load && (status == STORAGE_OK)) { 146 147 status = storage_load(irc, password); 147 } else {148 status = storage_check_pass(irc->user->nick, password);149 148 } 150 149 … … 159 158 irc_rootmsg(irc, "Password accepted%s", 160 159 load ? ", settings and accounts loaded" : ""); 161 irc_setpass(irc, password);162 160 irc->status |= USTATUS_IDENTIFIED; 163 161 irc_umode_set(irc, "+R", 1); … … 268 266 storage_status_t status; 269 267 270 status = storage_remove(irc->user->nick, cmd[1]); 268 status = auth_check_pass(irc, irc->user->nick, cmd[1]); 269 if (status == STORAGE_OK) { 270 status = storage_remove(irc->user->nick); 271 } 272 271 273 switch (status) { 272 274 case STORAGE_NO_SUCH_USER:
Note: See TracChangeset
for help on using the changeset viewer.