aboutsummaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-12-08 17:00:08 +0100
committerJelmer Vernooij <jelmer@samba.org>2005-12-08 17:00:08 +0100
commit7cad7b41a0b661c38ae5f6239aaf58361788edc9 (patch)
tree213ab238ece2ab120b7ec25f62b19224b37d6856 /commands.c
parent09adf08684c62fff0f507304ed37680137de4637 (diff)
Clearer seperation between crypting and generic password code
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands.c b/commands.c
index 4f2b6b85..2877aa4b 100644
--- a/commands.c
+++ b/commands.c
@@ -113,7 +113,7 @@ int cmd_register( irc_t *irc, char **cmd )
return( 0 );
}
- setpassnc( irc, cmd[1] );
+ irc_setpass( irc, cmd[1] );
switch( global.storage->save( irc, FALSE )) {
case STORAGE_ALREADY_EXISTS:
irc_usermsg( irc, "Nick is already registered" );
@@ -144,7 +144,7 @@ int cmd_drop( irc_t *irc, char **cmd )
irc_usermsg( irc, "Password invalid" );
return( 0 );
case STORAGE_OK:
- setpassnc( irc, NULL );
+ irc_setpass( irc, NULL );
irc_usermsg( irc, "Account `%s' removed", irc->nick );
return( 0 );
default: