X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_nopartmsg.cpp;h=50a6e14b9bc68097dabdf6caa62775bc12c92148;hb=495ea4be05859f46cbf99c10541210fa3590f01a;hp=fab20a084913730dcc49d4635a0615c27766932c;hpb=8de87c2a9b5f5e68caac1ca06b1021ed69cb3d6a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_nopartmsg.cpp b/src/modules/m_nopartmsg.cpp index fab20a084..50a6e14b9 100644 --- a/src/modules/m_nopartmsg.cpp +++ b/src/modules/m_nopartmsg.cpp @@ -2,8 +2,8 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits + * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see * the file COPYING for details. @@ -31,7 +31,7 @@ class ModulePartMsgBan : public Module virtual Version GetVersion() { - return Version("$Id$", VF_VENDOR, API_VERSION); + return Version("$Id$", VF_COMMON|VF_VENDOR, API_VERSION); } @@ -40,7 +40,7 @@ class ModulePartMsgBan : public Module if (!IS_LOCAL(user)) return; - if (channel->IsExtBanned(user, 'p')) + if (channel->GetExtBanStatus(user, 'p') < 0) partmessage = ""; return; @@ -48,10 +48,7 @@ class ModulePartMsgBan : public Module virtual void On005Numeric(std::string &output) { - if (output.find(" EXTBAN=:") == std::string::npos) - output.append(" EXTBAN=:p"); - else - output.insert(output.find(" EXTBAN=:") + 9, "p"); + ServerInstance->AddExtBanChar('p'); } };