- Channel* c = ServerInstance->FindChan(parameters[0]);
- if (c && c->HasUser(user))
- {
- std::vector<std::string> modes;
- modes[0] = parameters[0];
- modes[1] = "-v";
- modes[2] = user->nick;
-
- ServerInstance->SendMode(modes, ServerInstance->FakeClient);
-
- /* route it -- SendMode doesn't distribute over the whole network */
- return CMD_SUCCESS;
- }
+ std::vector<std::string> modes;
+ modes.push_back(parameters[0]);
+ modes.push_back("-v");
+ modes.push_back(user->nick);