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
24 Implementation eventlist[] = { I_OnUserPart, I_On005Numeric };
25 ServerInstance->Modules->Attach(eventlist, this, 2);
28 virtual ~ModulePartMsgBan()
32 virtual Version GetVersion()
34 return Version("Implements extban +b p: - part message bans", VF_COMMON|VF_VENDOR);
38 virtual void OnUserPart(Membership* memb, std::string &partmessage, CUList& excepts)
40 if (!IS_LOCAL(memb->user))
43 if (memb->chan->GetExtBanStatus(memb->user, 'p') == MOD_RES_DENY)
49 virtual void On005Numeric(std::string &output)
51 ServerInstance->AddExtBanChar('p');
56 MODULE_INIT(ModulePartMsgBan)