diff options
| author | 2013-04-01 02:13:43 +0200 | |
|---|---|---|
| committer | 2013-04-01 02:13:43 +0200 | |
| commit | 1cb05553e286227e6bbd463d0b4b8cae40ff3940 (patch) | |
| tree | d8c211e91ce29fcaf94dc3a4bf1814200804509c /src/modules/m_chanprotect.cpp | |
| parent | Rewrote caller.h to be more C++11 ish, currently commented out pending whenev... (diff) | |
Change channel name parameter of Module::OnUserPreJoin() and Channel::JoinUser() to std::string from char*
Diffstat (limited to 'src/modules/m_chanprotect.cpp')
| -rw-r--r-- | src/modules/m_chanprotect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
