X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=ircd%2Fgline.c;h=fd63607159dd3f1bd4c3392d9232524b41dda0c6;hp=5ee69e1209187d90b7580d82e46c8c04b9980919;hb=140ab2b3075fe6b64c32c7f11ef7abf65ab24247;hpb=e418cc009a0315fe8384ba6e316808d9861c2109 diff --git a/ircd/gline.c b/ircd/gline.c index 5ee69e1..fd63607 100644 --- a/ircd/gline.c +++ b/ircd/gline.c @@ -453,10 +453,12 @@ gline_add(struct Client *cptr, struct Client *sptr, char *userhost, } user = userhost; host = NULL; - tmp = count_realnames(userhost + 2); - if ((tmp >= feature_int(FEAT_GLINEMAXUSERCOUNT)) - && !(flags & GLINE_OPERFORCE)) - return send_reply(sptr, ERR_TOOMANYUSERS, tmp); + if (MyUser(sptr) || (IsUser(sptr) && flags & GLINE_LOCAL)) { + tmp = count_realnames(userhost + 2); + if ((tmp >= feature_int(FEAT_GLINEMAXUSERCOUNT)) + && !(flags & GLINE_OPERFORCE)) + return send_reply(sptr, ERR_TOOMANYUSERS, tmp); + } } else { canon_userhost(userhost, &user, &host, "*"); if (sizeof(uhmask) <