+2012-05-31 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_gline.c (ms_gline): If the mask was empty after removing
+ the command character(s), reject the command.
+ (mo_gline): Likewise.
+
2012-05-31 Michael Poole <mdpoole@troilus.org>
* include/channel.h (infochanmodes): Add +d channel mode.
break;
}
+ /* Is there no mask left? */
+ if (mask[0] == '\0')
+ return need_more_params(sptr, "GLINE");
+
/* Now, let's figure out if it's a local or global G-line */
if (action == GLINE_LOCAL_ACTIVATE || action == GLINE_LOCAL_DEACTIVATE ||
(target[0] == '*' && target[1] == '\0'))
break;
}
+ /* Is there no mask left? */
+ if (mask[0] == '\0')
+ return need_more_params(sptr, "GLINE");
+
/* Now let's figure out which is the target server */
if (!target) /* no target, has to be me... */
acptr = &me;