diff options
author | psychon <psychon@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-24 15:03:00 +0000 |
---|---|---|
committer | psychon <psychon@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-24 15:03:00 +0000 |
commit | b2920d53c2d2478114735f7388d7d98200385e3a (patch) | |
tree | 736dc364fd012043397a06413fdb61ab349b9346 | |
parent | ca571fc1bfa87da2d6b4b8b2d01c90991e14e106 (diff) |
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
-rw-r--r-- | src/modules/m_override.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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<OVRrequest*>(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'); } |