aboutsummaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2005-12-26 15:42:54 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2005-12-26 15:42:54 +0100
commit238f828cb3524a2a09337d7502cc6db9556fc67a (patch)
tree7bb7abcda5525d0b4ed7445dd5368783c464ecdd /commands.c
parentd25f6fcbe8e291dd858bf734fa85cde176dc8415 (diff)
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). :-)
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/commands.c b/commands.c
index fe1607c4..764706e4 100644
--- a/commands.c
+++ b/commands.c
@@ -96,6 +96,7 @@ int cmd_identify( irc_t *irc, char **cmd )
break;
case STORAGE_OK:
irc_usermsg( irc, "Password accepted" );
+ irc_umode_set( irc, "+R", 1 );
break;
default:
irc_usermsg( irc, "Something very weird happened" );
@@ -121,6 +122,7 @@ int cmd_register( irc_t *irc, char **cmd )
case STORAGE_OK:
irc->status = USTATUS_IDENTIFIED;
+ irc_umode_set( irc, "+R", 1 );
break;
default:
@@ -145,6 +147,8 @@ int cmd_drop( irc_t *irc, char **cmd )
return( 0 );
case STORAGE_OK:
irc_setpass( irc, NULL );
+ irc->status = USTATUS_LOGGED_IN;
+ irc_umode_set( irc, "-R", 1 );
irc_usermsg( irc, "Account `%s' removed", irc->nick );
return( 0 );
default: