From 1cb05553e286227e6bbd463d0b4b8cae40ff3940 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Mon, 1 Apr 2013 02:13:43 +0200 Subject: Change channel name parameter of Module::OnUserPreJoin() and Channel::JoinUser() to std::string from char* --- src/modules/m_chanprotect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_chanprotect.cpp') diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp index affd0c8d6..09364fb32 100644 --- a/src/modules/m_chanprotect.cpp +++ b/src/modules/m_chanprotect.cpp @@ -138,7 +138,7 @@ class ChanFounder : public ModeHandler, public FounderProtectBase void RemoveMode(User* user, irc::modestacker* stack) { } - + ModResult AccessCheck(User* source, Channel* channel, std::string ¶meter, bool adding) { User* theuser = ServerInstance->FindNick(parameter); @@ -288,7 +288,7 @@ class ModuleChanProtect : public Module settings.DeprivOthers = tag->getBool("deprotectothers", true); } - ModResult OnUserPreJoin(User *user, Channel *chan, const char *cname, std::string &privs, const std::string &keygiven) + ModResult OnUserPreJoin(User* user, Channel* chan, const std::string& cname, std::string& privs, const std::string& keygiven) { // if the user is the first user into the channel, mark them as the founder, but only if // the config option for it is set -- cgit v1.3.1-10-gc9f91