1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2007 InspIRCd Development Team
6 * See: http://www.inspircd.org/wiki/index.php/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
19 /* $ModDesc: Removes flood limits from users upon opering up. */
20 class ModuleOperFlood : public Module
23 ModuleOperFlood(InspIRCd * Me) : Module(Me) {}
25 void Implements(char * List)
27 List[I_OnPostOper] = 1;
28 Implementation eventlist[] = { I_OnPostOper };
29 ServerInstance->Modules->Attach(eventlist, this, 1);
34 return Version(1,1,0,1,VF_VENDOR,API_VERSION);
37 void OnPostOper(User* user, const std::string &opertype)
42 user->ExemptFromPenalty = true;
43 user->WriteServ("NOTICE %s :*** You are now free from flood limits.", user->nick);
47 MODULE_INIT(ModuleOperFlood)