output.append(" UHNAMES");
}
- virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line)
+ virtual int OnPreCommand(const std::string &command, const std::vector<std::string> ¶meters, User *user, bool validated, const std::string &original_line)
{
irc::string c = command.c_str();
/* We don't actually create a proper command handler class for PROTOCTL,
*/
if (c == "PROTOCTL")
{
- if ((pcnt) && (!strcasecmp(parameters[0],"UHNAMES")))
+ if ((parameters.size()) && (!strcasecmp(parameters[0].c_str(),"UHNAMES")))
{
user->Extend("UHNAMES");
return 1;