Changeset 238f828 for commands.c


Ignore:
Timestamp:
2005-12-26T14:42:54Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
e4d6271
Parents:
d25f6fc
Message:

Fixed that security hole, and added mode +R (don't know if that's the right one).
Now to add the actual oper features (and IPC). :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    rd25f6fc r238f828  
    9797        case STORAGE_OK:
    9898                irc_usermsg( irc, "Password accepted" );
     99                irc_umode_set( irc, "+R", 1 );
    99100                break;
    100101        default:
     
    122123                case STORAGE_OK:
    123124                        irc->status = USTATUS_IDENTIFIED;
     125                        irc_umode_set( irc, "+R", 1 );
    124126                        break;
    125127
     
    146148        case STORAGE_OK:
    147149                irc_setpass( irc, NULL );
     150                irc->status = USTATUS_LOGGED_IN;
     151                irc_umode_set( irc, "-R", 1 );
    148152                irc_usermsg( irc, "Account `%s' removed", irc->nick );
    149153                return( 0 );
Note: See TracChangeset for help on using the changeset viewer.