diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-20 21:52:25 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-20 21:52:25 +0000 |
commit | 75e19b2ff35d6b42fe83e7200d3675d81e43ecc1 (patch) | |
tree | 5ca84d3f8de3da717786520b17bb7e9008043092 /src/modules | |
parent | 16bdaa927d2f532dfdc9f81ec25a843ebc99d9ff (diff) |
*** empty log message ***
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1466 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_chanprotect.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp index 6314cca94..7155e1355 100644 --- a/src/modules/m_chanprotect.cpp +++ b/src/modules/m_chanprotect.cpp @@ -24,7 +24,7 @@ using namespace std; /* $ModDesc: Provides channel modes +a and +q */ -char dummyvalue[] = "on"; +char fakevalue[] = "on"; class ModuleChanProtect : public Module { @@ -107,7 +107,7 @@ class ModuleChanProtect : public Module // this way is best as it adds data thats accessible to other modules // (so long as you document your code properly) without breaking anything // because its encapsulated neatly in a map. - if (user->Extend("cm_founder_"+std::string(channel->name),dummyvalue)) + if (user->Extend("cm_founder_"+std::string(channel->name),fakevalue)) { Srv->Log(DEBUG,"Marked user "+std::string(user->nick)+" as founder for "+std::string(channel->name)); } @@ -222,7 +222,7 @@ class ModuleChanProtect : public Module { if (!theuser->GetExt("cm_founder_"+std::string(chan->name))) { - theuser->Extend("cm_founder_"+std::string(chan->name),dummyvalue); + theuser->Extend("cm_founder_"+std::string(chan->name),fakevalue); return 1; } } @@ -265,7 +265,7 @@ class ModuleChanProtect : public Module { if (!theuser->GetExt("cm_protect_"+std::string(chan->name))) { - theuser->Extend("cm_protect_"+std::string(chan->name),dummyvalue); + theuser->Extend("cm_protect_"+std::string(chan->name),fakevalue); return 1; } } |