Author: Ghostwolf <foxxe@trms.com>
[ircu2.10.12-pk.git] / ircd / m_gline.c
index c2980c187ea536d6ecc0dda8a7b4ba665505f3ae..96761e75dd76c7b625059eab168c81355cbbf05e 100644 (file)
@@ -167,11 +167,11 @@ ms_gline(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
     flags |= GLINE_LOCAL;
   }
 
-  if (*server == '-')
-    server++;
-  else if (*server == '+') {
+  if (*mask == '-')
+    mask++;
+  else if (*mask == '+') {
     flags |= GLINE_ACTIVE;
-    server++;
+    mask++;
   } else
     flags |= GLINE_ACTIVE;