X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_securelist.cpp;h=97f84f5c7b98f2b765c9a82398e24d633a13d20f;hb=3a7023f2c595d14778b3f1f7e53d3914698dd500;hp=8885068babe4134ef721d4e8aa3045e54e846433;hpb=c6e941f5c8b01ae80a8d84c5c42cbeee19706bf8;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_securelist.cpp b/src/modules/m_securelist.cpp index 8885068ba..97f84f5c7 100644 --- a/src/modules/m_securelist.cpp +++ b/src/modules/m_securelist.cpp @@ -55,7 +55,7 @@ class ModuleSecureList : public Module * OnPreCommand() * Intercept the LIST command. */ - virtual int OnPreCommand(const std::string &command, char **parameters, int pcnt, userrec *user, bool validated) + virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, userrec *user, bool validated) { /* If the command doesnt appear to be valid, we dont want to mess with it. */ if (!validated) @@ -67,8 +67,8 @@ class ModuleSecureList : public Module /* Some crap clients (read: mIRC, various java chat applets) muck up if they don't * receive these numerics whenever they send LIST, so give them an empty LIST to mull over. */ - WriteServ(u->fd,"321 %s Channel :Users Name",user->nick); - WriteServ(u->fd,"323 %s :End of channel list.",user->nick); + WriteServ(user->fd,"321 %s Channel :Users Name",user->nick); + WriteServ(user->fd,"323 %s :End of channel list.",user->nick); return 1; } return 0; @@ -81,7 +81,7 @@ class ModuleSecureList : public Module virtual Priority Prioritize() { - return Srv->PriorityBefore("m_safelist.so"); + return (Priority)Srv->PriorityBefore("m_safelist.so"); } };