- user->WriteServ("NOTICE %s :*** You cannot list within the first minute of connecting. Please try again later.",user->nick);
- /* Some crap clients (read: mIRC, various java chat applets) muck up if they don't
+ /* Normally wouldnt be allowed here, are they exempt? */
+ for (std::vector<std::string>::iterator x = allowlist.begin(); x != allowlist.end(); x++)
+ if (InspIRCd::Match(user->MakeHost(), *x, ascii_case_insensitive_map))
+ return MOD_RES_PASSTHRU;
+
+ const AccountExtItem* ext = GetAccountExtItem();
+ if (exemptregistered && ext && ext->get(user))
+ return MOD_RES_PASSTHRU;
+
+ /* Not exempt, BOOK EM DANNO! */
+ user->WriteNotice("*** You cannot list within the first " + ConvToStr(WaitTime) + " seconds of connecting. Please try again later.");
+ /* Some clients (e.g. mIRC, various java chat applets) muck up if they don't