X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_deaf.cpp;h=c72d26fe5500392f6cfbae26163e7ef7e7fc573b;hb=0da6b3a13def40e8fd002b9fc60f955467f6372d;hp=09110f9210bcf6908a26cda6e4b7b6e78958138d;hpb=a8d0bb046a67ba41947738b02cb7705f5db9fe67;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_deaf.cpp b/src/modules/m_deaf.cpp index 09110f921..c72d26fe5 100644 --- a/src/modules/m_deaf.cpp +++ b/src/modules/m_deaf.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. @@ -12,9 +12,6 @@ */ #include "inspircd.h" -#include "users.h" -#include "channels.h" -#include "modules.h" /* $ModDesc: Provides support for ircu style usermode +d (deaf to channel messages and channel notices) */ @@ -63,13 +60,13 @@ class ModuleDeaf : public Module if (!ServerInstance->Modes->AddMode(m1)) throw ModuleException("Could not add new modes!"); - OnRehash(NULL, ""); + OnRehash(NULL); Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice, I_OnRehash, I_OnBuildExemptList }; ServerInstance->Modules->Attach(eventlist, this, 4); } - virtual void OnRehash(User* user, const std::string&) + virtual void OnRehash(User* user) { ConfigReader* conf = new ConfigReader(ServerInstance); deaf_bypasschars = conf->ReadValue("deaf", "bypasschars", 0); @@ -168,7 +165,7 @@ class ModuleDeaf : public Module virtual Version GetVersion() { - return Version(1,2,0,0,VF_COMMON|VF_VENDOR,API_VERSION); + return Version("$Id$", VF_COMMON|VF_VENDOR,API_VERSION); } };