X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_commonchans.cpp;h=5a30ddddb958bcda26e6016055261a9b89eb17c5;hb=85182d727c0d549b9cf6659ad36dec70fcf02278;hp=80fd75e7b993fc9bca61444ccc3852156d992c2b;hpb=e7b65ef5355d75dd32ea387da716a765090aff0e;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_commonchans.cpp b/src/modules/m_commonchans.cpp index 80fd75e7b..5a30ddddb 100644 --- a/src/modules/m_commonchans.cpp +++ b/src/modules/m_commonchans.cpp @@ -34,13 +34,13 @@ class ModuleCommonChans return MOD_RES_PASSTHRU; User* targuser = target.Get(); - if (!targuser->IsModeSet(mode) || !user->SharesChannelWith(targuser)) + if (!targuser->IsModeSet(mode) || user->SharesChannelWith(targuser)) return MOD_RES_PASSTHRU; if (user->HasPrivPermission("users/ignore-commonchans") || user->server->IsULine()) return MOD_RES_PASSTHRU; - user->WriteNumeric(ERR_CANTSENDTOUSER, targuser->nick, "You are not permitted to send private messages to this user (+c set)"); + user->WriteNumeric(ERR_CANTSENDTOUSER, targuser->nick, "You are not permitted to send private messages to this user (+c is set)"); return MOD_RES_DENY; } @@ -53,7 +53,7 @@ class ModuleCommonChans Version GetVersion() CXX11_OVERRIDE { - return Version("Adds user mode +c which requires users to share a common channel with you to private message you", VF_VENDOR); + return Version("Provides user mode +c, requires users to share a common channel with you to private message you", VF_VENDOR); } ModResult OnUserPreMessage(User* user, const MessageTarget& target, MessageDetails& details) CXX11_OVERRIDE