]> jfr.im git - irc/evilnet/x3.git/commitdiff
fix crash bug
authorAlex Schumann <redacted>
Thu, 13 Mar 2014 16:04:52 +0000 (11:04 -0500)
committerAlex Schumann <redacted>
Thu, 13 Mar 2014 16:04:52 +0000 (11:04 -0500)
src/nickserv.c

index 13b688c3eede25bde226abc7f3cc6b370ece4e03..7435a4528125eb0c0ca3447c50971e332b7ce9cf 100644 (file)
@@ -2341,7 +2341,7 @@ static NICKSERV_FUNC(cmd_auth)
     }
     
 #ifdef WITH_LDAP
-    if(strchr(argv[1], '<') || strchr(handle, '>')) {
+    if(strchr(handle, '<') || strchr(handle, '>')) {
         reply("NSMSG_NO_ANGLEBRACKETS");
         return 0;
     }
@@ -2377,7 +2377,7 @@ static NICKSERV_FUNC(cmd_auth)
             * create the account.
             */
              char *mask;
-             if(!(hi = nickserv_register(user, user, argv[1], argv[2], 0))) {
+             if(!(hi = nickserv_register(user, user, handle, passwd, 0))) {
                 reply("NSMSG_UNABLE_TO_ADD");
                 return 0; /* couldn't add the user for some reason */
              }