fixed cmd_rename (should check the new auth for existence)
authorpk910 <philipp@zoelle1.de>
Sat, 12 Nov 2011 06:15:48 +0000 (07:15 +0100)
committerpk910 <philipp@zoelle1.de>
Sat, 12 Nov 2011 06:15:48 +0000 (07:15 +0100)
src/cmd_neonserv_rename.c

index b061c3fa7c4d3cdc62343542eee1d2e26d5e34f9..d0e64e033b968c33fc01513a38b57b1f8f7cfbe3 100644 (file)
@@ -44,7 +44,7 @@ CMD_BIND(neonserv_cmd_rename) {
     cache->event = event;
     cache->oldauth = strdup(argv[0]);
     cache->newauth = strdup(argv[1]);
-    lookup_authname(argv[0], neonserv_cmd_rename_auth_lookup, cache);
+    lookup_authname(argv[1], neonserv_cmd_rename_auth_lookup, cache);
 }
 
 static AUTHLOOKUP_CALLBACK(neonserv_cmd_rename_auth_lookup) {