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 s: - server name bans */
18 class ModuleServerBan : public Module
22 ModuleServerBan(InspIRCd* Me) : Module(Me)
24 Implementation eventlist[] = { I_OnCheckBan, I_On005Numeric };
25 ServerInstance->Modules->Attach(eventlist, this, 2);
28 virtual ~ModuleServerBan()
32 virtual Version GetVersion()
34 return Version("$Id$",VF_COMMON|VF_VENDOR,API_VERSION);
37 virtual int OnCheckBan(User *user, Channel *c)
39 return c->GetExtBanStatus(user->server, 's');
42 virtual void On005Numeric(std::string &output)
44 ServerInstance->AddExtBanChar('s');
49 MODULE_INIT(ModuleServerBan)