]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_ojoin.cpp
Merge pull request #357 from StevenVanAcker/insp20
[user/henk/code/inspircd.git] / src / modules / m_ojoin.cpp
index fcb26775017ef391a5d80117a92820d129f4b1f0..e16fe3588d5a2e83ce694a25980eddea05088328 100644 (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;