X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_regonlycreate.cpp;h=78b20ef6b9f96206c1711f65176431d59039218c;hb=5076d9d3c4d9cdf9a9124a60e3311d111297d301;hp=6b6e059dfa6c038135ccb0e13d89aa273d36110b;hpb=fd1d19d6345943ecdb5ce4ef947f9b3c5c8bca86;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_regonlycreate.cpp b/src/modules/m_regonlycreate.cpp index 6b6e059df..78b20ef6b 100644 --- a/src/modules/m_regonlycreate.cpp +++ b/src/modules/m_regonlycreate.cpp @@ -33,12 +33,6 @@ class ModuleRegOnlyCreate : public Module { } - void init() CXX11_OVERRIDE - { - Implementation eventlist[] = { I_OnUserPreJoin }; - ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); - } - ModResult OnUserPreJoin(LocalUser* user, Channel* chan, const std::string& cname, std::string& privs, const std::string& keygiven) CXX11_OVERRIDE { if (chan) @@ -55,7 +49,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.c_str()); + user->WriteNumeric(ERR_CHANOPRIVSNEEDED, cname, "You must have a registered nickname to create a new channel"); return MOD_RES_DENY; }