Author: Isomer <isomer@undernet.org>
[ircu2.10.12-pk.git] / ircd / m_user.c
index aa172e49af380e4bfb336025575c0057ffe62f5f..6316463cb22f56a668b4845e9b553a0137075f11 100644 (file)
@@ -140,7 +140,7 @@ int m_user(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
     username = "NoUser";
 
   if ((mode_request = strtoul(parv[2], &term, 10)) != 0
-      && term != NULL && *term != '\0')
+      && term != NULL && *term == '\0')
   {
     /* These bitmask values are codified in RFC 2812, showing
      * ... well, something that is probably best not said.