X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/2392eb24cd19cede27f51ffa7f3d70b29edcbe33..22544e37fb6840d07e3ccabf35f6d65dc8821c78:/src/chmode.c diff --git a/src/chmode.c b/src/chmode.c index 60fc901..5cbcde3 100644 --- a/src/chmode.c +++ b/src/chmode.c @@ -69,6 +69,7 @@ char cflagsbuf[256]; char cflagsmyinfo[256]; int chmode_flags[256]; + /* OPTIMIZE ME! -- dwr */ void construct_noparam_modes(void) @@ -380,7 +381,7 @@ pretty_mask(const char *idmask) if(*t != '\0') user = t; } - else if(strchr(mask, '.') != NULL || strchr(mask, ':') != NULL) + else if(strchr(mask, '.') != NULL || strchr(mask, ':') != NULL || strchr(mask, '/') != NULL) { if(*mask != '\0') host = mask; @@ -500,7 +501,6 @@ chm_simple(struct Client *source_p, struct Channel *chptr, return; } - /* flags (possibly upto 32) + 4 with param */ if(MyClient(source_p) && (++mode_limit_simple > MAXMODES_SIMPLE)) return;