Author: Isomer / ZenShadow
[ircu2.10.12-pk.git] / ircd / s_user.c
index 615f86922b6bb3defd150bba4b35ac187e22fdb0..a7c0c03e7c150ae575ec68eb038b88db8f6f222c 100644 (file)
@@ -580,11 +580,11 @@ int register_user(struct Client *cptr, struct Client *sptr,
     {
       ServerStats->is_ref++;
 
-      send_reply(cptr, RPL_EXPLICIT | ERR_INVALIDUSERNAME,
+      send_reply(cptr, SND_EXPLICIT | ERR_INVALIDUSERNAME,
                 ":Your username is invalid.");
-      send_reply(cptr, RPL_EXPLICIT | ERR_INVALIDUSERNAME,
+      send_reply(cptr, SND_EXPLICIT | ERR_INVALIDUSERNAME,
                 ":Connect with your real username, in lowercase.");
-      send_reply(cptr, RPL_EXPLICIT | ERR_INVALIDUSERNAME,
+      send_reply(cptr, SND_EXPLICIT | ERR_INVALIDUSERNAME,
                 ":If your mail address were foo@bar.com, your username "
                 "would be foo.");
       return exit_client(cptr, sptr, &me, "USER: Bad username");
@@ -627,16 +627,6 @@ int register_user(struct Client *cptr, struct Client *sptr,
     nextping = CurrentTime;
     if (sptr->snomask & SNO_NOISY)
       set_snomask(sptr, sptr->snomask & SNO_NOISY, SNO_ADD);
-#ifdef ALLOW_SNO_CONNEXIT
-#ifdef SNO_CONNEXIT_IP
-    sendto_opmask_butone(0, SNO_CONNEXIT, "Client connecting: %s (%s@%s) "
-                        "[%s] {%d}", nick, user->username, user->host,
-                        cptr->sock_ip, get_client_class(sptr));
-#else /* SNO_CONNEXIT_IP */
-    sendto_opmask_butone(0, SNO_CONEXIT, "Client connecting: %s (%s@%s)",
-                        nick, user->username, user->host);
-#endif /* SNO_CONNEXIT_IP */
-#endif /* ALLOW_SNO_CONNEXIT */
     IPcheck_connect_succeeded(sptr);
   }
   else