From c6d28ade53dd307a079dc6cbac2ae5df22aef4f9 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 11 Mar 2006 14:52:07 +0000 Subject: More converted modules git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3655 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_chanprotect.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_chanprotect.cpp') 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 ¶meter) { // on a rehash we delete our classes for good measure and create them again. delete Conf; -- cgit v1.3.1-10-gc9f91