mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 03:59:03 -04:00
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:
parent
c244b6686c
commit
9fe15c5988
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user