diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-04-01 02:13:43 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-04-01 02:13:43 +0200 |
commit | 1cb05553e286227e6bbd463d0b4b8cae40ff3940 (patch) | |
tree | d8c211e91ce29fcaf94dc3a4bf1814200804509c /src/modules/m_regonlycreate.cpp | |
parent | 9b9140d5f8a94ba160120ab91821338f08fba6e1 (diff) |
Change channel name parameter of Module::OnUserPreJoin() and Channel::JoinUser() to std::string from char*
Diffstat (limited to 'src/modules/m_regonlycreate.cpp')
-rw-r--r-- | src/modules/m_regonlycreate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_regonlycreate.cpp b/src/modules/m_regonlycreate.cpp index 61f94c0bd..93f88fe30 100644 --- a/src/modules/m_regonlycreate.cpp +++ b/src/modules/m_regonlycreate.cpp @@ -34,7 +34,7 @@ class ModuleRegOnlyCreate : public Module ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } - 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 (chan) return MOD_RES_PASSTHRU; @@ -50,7 +50,7 @@ class ModuleRegOnlyCreate : public Module return MOD_RES_PASSTHRU; // XXX. there may be a better numeric for this.. - user->WriteNumeric(ERR_CHANOPRIVSNEEDED, "%s %s :You must have a registered nickname to create a new channel", user->nick.c_str(), cname); + user->WriteNumeric(ERR_CHANOPRIVSNEEDED, "%s %s :You must have a registered nickname to create a new channel", user->nick.c_str(), cname.c_str()); return MOD_RES_DENY; } |