1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2009 InspIRCd Development Team
6 * See: http://wiki.inspircd.org/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
16 /* $ModDesc: Implements extban +b p: - part message bans */
18 class ModulePartMsgBan : public Module
23 Implementation eventlist[] = { I_OnUserPart, I_On005Numeric };
24 ServerInstance->Modules->Attach(eventlist, this, 2);
27 virtual ~ModulePartMsgBan()
31 virtual Version GetVersion()
33 return Version("Implements extban +b p: - part message bans", VF_COMMON|VF_VENDOR, API_VERSION);
37 virtual void OnUserPart(Membership* memb, std::string &partmessage, CUList& excepts)
39 if (!IS_LOCAL(memb->user))
42 if (memb->chan->GetExtBanStatus(memb->user, 'p') == MOD_RES_DENY)
48 virtual void On005Numeric(std::string &output)
50 ServerInstance->AddExtBanChar('p');
55 MODULE_INIT(ModulePartMsgBan)