From b2920d53c2d2478114735f7388d7d98200385e3a Mon Sep 17 00:00:00 2001 From: psychon Date: Sat, 24 Jan 2009 15:03:00 +0000 Subject: Fix some spaces as indent and one double space in m_override so that Ankit is happy again git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10996 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_override.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp index c5f1cc11c..cf2723bec 100644 --- a/src/modules/m_override.cpp +++ b/src/modules/m_override.cpp @@ -35,10 +35,10 @@ class ModuleOverride : public Module OnRehash(NULL,""); ServerInstance->SNO->EnableSnomask('G', "GODMODE"); OverriddenMode = false; - if (!ServerInstance->Modules->PublishFeature("Override", this)) - { - throw ModuleException("m_override: Unable to publish feature 'Override'"); - } + if (!ServerInstance->Modules->PublishFeature("Override", this)) + { + throw ModuleException("m_override: Unable to publish feature 'Override'"); + } OverOps = OverDeops = OverVoices = OverDevoices = OverHalfops = OverDehalfops = 0; Implementation eventlist[] = { I_OnRehash, I_OnAccessCheck, I_On005Numeric, I_OnUserPreJoin, I_OnUserPreKick, I_OnPostCommand, I_OnLocalTopicChange, I_OnRequest }; ServerInstance->Modules->Attach(eventlist, this, 8); @@ -115,7 +115,7 @@ class ModuleOverride : public Module { if (!channel->HasUser(source) || (channel->IsModeSet('t') && channel->GetStatus(source) < STATUS_HOP)) { - ServerInstance->SNO->WriteToSnoMask('G',std::string(source->nick)+" used oper override to change a topic on "+std::string(channel->name)); + ServerInstance->SNO->WriteToSnoMask('G',std::string(source->nick)+" used oper override to change a topic on "+std::string(channel->name)); } // Explicit allow @@ -284,7 +284,7 @@ class ModuleOverride : public Module return -1; } - if ((chan->modes[CM_LIMIT]) && (chan->GetUserCounter() >= atoi(chan->GetModeParameter('l').c_str())) && (CanOverride(user,"LIMIT"))) + if ((chan->modes[CM_LIMIT]) && (chan->GetUserCounter() >= atoi(chan->GetModeParameter('l').c_str())) && (CanOverride(user,"LIMIT"))) { if (RequireKey && keygiven != "override") { @@ -318,9 +318,9 @@ class ModuleOverride : public Module return 0; } - virtual const char* OnRequest(Request* request) - { - if(strcmp(OVRREQID, request->GetId()) == 0) + virtual const char* OnRequest(Request* request) + { + if(strcmp(OVRREQID, request->GetId()) == 0) { OVRrequest* req = static_cast(request); return this->CanOverride(req->requser,req->reqtoken.c_str()) ? "yes":""; @@ -330,7 +330,7 @@ class ModuleOverride : public Module virtual ~ModuleOverride() { - ServerInstance->Modules->UnpublishFeature("Override"); + ServerInstance->Modules->UnpublishFeature("Override"); ServerInstance->SNO->DisableSnomask('G'); } -- cgit v1.2.3