]> jfr.im git - irc/quakenet/snircd.git/blobdiff - ircd/m_nick.c
Should be unsigned long for A
[irc/quakenet/snircd.git] / ircd / m_nick.c
index ccdbc9281ad53ece92868353dc42c5579729b5e5..891c45733f82a62b05859ecb4bd131a97e4ef42e 100644 (file)
@@ -98,6 +98,7 @@
 #include "s_user.h"
 #include "send.h"
 #include "sys.h"
+#include "gline.h"
 
 /* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <stdlib.h>
@@ -181,6 +182,11 @@ int m_nick(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
     return 0;
   }
 
+  if (IsRegistered(sptr) && !IsAnOper(sptr) && IsNickGlined(sptr, nick)) {
+    send_reply(sptr, ERR_ERRONEUSNICKNAME, nick);
+    return 0;
+  }
+  
   /* 
    * Check if this is a LOCAL user trying to use a reserved (Juped)
    * nick, if so tell him that it's a nick in use...