@@ -57,7+57,7 @@ class CommandTban : public Command
{
if (!strcasecmp(i->data,parameters[2].c_str()))
{
- user->WriteServ("NOTICE "+std::string(user->nick)+" :The ban "+std::string(parameters[2])+" is already on the banlist of "+std::string(parameters[0]));
+ user->WriteServ("NOTICE "+std::string(user->nick)+" :The ban "+parameters[2]+" is already on the banlist of "+parameters[0]);
return CMD_FAILURE;
}
}
@@ -72,9+72,9 @@ class CommandTban : public Command
}
std::string mask = parameters[2];
std::vector<std::string> setban;
- setban[0] = parameters[0];
- setban[1] = "+b";
- setban[2] = parameters[2];
+ setban.push_back(parameters[0]);
+ setban.push_back("+b");
+ setban.push_back(parameters[2]);
// use CallCommandHandler to make it so that the user sets the mode