m_ojoin Fix giving +Y only instead of +Yo when <ojoin:op> is on and the user is already in the channel

This commit is contained in:
attilamolnar 2012-07-26 17:52:13 +02:00
parent c244b6686c
commit 9fe15c5988

View File

@ -87,8 +87,10 @@ class CommandOjoin : public Command
// they're already in the channel
std::vector<std::string> modes;
modes.push_back(parameters[0]);
modes.push_back("+Y");
modes.push_back(op ? "+Yo" : "+Y");
modes.push_back(user->nick);
if (op)
modes.push_back(user->nick);
ServerInstance->SendGlobalMode(modes, ServerInstance->FakeClient);
}
return CMD_SUCCESS;