X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_samode.cpp;h=b1642e47085b9ce4b3a61b096ce9a37460a7b556;hb=9ed9396278c2499f5322575c87aa4daea33992e3;hp=322ee91b8f5878d6f5f57c671251019eb08b7887;hpb=21e7efdadfa685ac1ddcb0a0a515502bc873302b;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp index 322ee91b8..b1642e470 100644 --- a/src/modules/m_samode.cpp +++ b/src/modules/m_samode.cpp @@ -49,8 +49,11 @@ class CommandSamode : public Command } // Changing the modes of another user requires a special permission - if ((target != user) && (!user->HasPrivPermission("users/samode-usermodes", true))) + if ((target != user) && (!user->HasPrivPermission("users/samode-usermodes"))) + { + user->WriteNotice("*** You are not allowed to /SAMODE other users (the privilege users/samode-usermodes is needed to /SAMODE others)."); return CMD_FAILURE; + } } // XXX: Make ModeParser clear LastParse @@ -93,7 +96,7 @@ class ModuleSaMode : public Module Version GetVersion() CXX11_OVERRIDE { - return Version("Provides command SAMODE to allow opers to change modes on channels and users", VF_VENDOR); + return Version("Provides the SAMODE command, allows opers to change modes on channels and users", VF_VENDOR); } ModResult OnPreMode(User* source, User* dest, Channel* channel, Modes::ChangeList& modes) CXX11_OVERRIDE