* 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)
/* 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;
virtual Priority Prioritize()
{
- return Srv->PriorityBefore("m_safelist.so");
+ return (Priority)Srv->PriorityBefore("m_safelist.so");
}
};