X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_deaf.cpp;h=c72d26fe5500392f6cfbae26163e7ef7e7fc573b;hb=0da6b3a13def40e8fd002b9fc60f955467f6372d;hp=32cfac50a54ce6172de23a1b0adc14a48de1f009;hpb=8de87c2a9b5f5e68caac1ca06b1021ed69cb3d6a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_deaf.cpp b/src/modules/m_deaf.cpp index 32cfac50a..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);