X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=ircd%2Fm_gline.c;fp=ircd%2Fm_gline.c;h=9b6f66164fdcca12c755de0aeec95aac6fbb523c;hp=18bc31d46fb5a7d98ab55ef1c90697c1c0472e0f;hb=35fdd100a6c9e9ab362980d22e140ea18b793a6d;hpb=fa78a87f4d4bf4411effdb4e3ba1072625294a9a diff --git a/ircd/m_gline.c b/ircd/m_gline.c index 18bc31d..9b6f661 100644 --- a/ircd/m_gline.c +++ b/ircd/m_gline.c @@ -167,6 +167,10 @@ ms_gline(struct Client *cptr, struct Client *sptr, int parc, char *parv[]) 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')) @@ -477,6 +481,10 @@ mo_gline(struct Client *cptr, struct Client *sptr, int parc, char *parv[]) 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;