summaryrefslogtreecommitdiff
path: root/src/modules/m_chanprotect.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 14:52:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 14:52:07 +0000
commitc6d28ade53dd307a079dc6cbac2ae5df22aef4f9 (patch)
tree4070cdd9de176573fbc223fb595bfebc01b6a67c /src/modules/m_chanprotect.cpp
parent9a526c77cc57921d81f4d8617b7e42bdb72dc79c (diff)
More converted modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3655 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_chanprotect.cpp')
-rw-r--r--src/modules/m_chanprotect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp
index a0a0da1e0..b7d67d9ae 100644
--- a/src/modules/m_chanprotect.cpp
+++ b/src/modules/m_chanprotect.cpp
@@ -64,21 +64,21 @@ class ModuleChanProtect : public Module
InsertMode(output,"qa",1);
}
- virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason)
+ virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, const std::string &reason)
{
// FIX: when someone gets kicked from a channel we must remove their Extensibles!
user->Shrink("cm_founder_"+std::string(chan->name));
user->Shrink("cm_protect_"+std::string(chan->name));
}
- virtual void OnUserPart(userrec* user, chanrec* channel, std::string partreason)
+ virtual void OnUserPart(userrec* user, chanrec* channel, const std::string &partreason)
{
// FIX: when someone parts a channel we must remove their Extensibles!
user->Shrink("cm_founder_"+std::string(channel->name));
user->Shrink("cm_protect_"+std::string(channel->name));
}
- virtual void OnRehash(std::string parameter)
+ virtual void OnRehash(const std::string &parameter)
{
// on a rehash we delete our classes for good measure and create them again.
delete Conf;