]> jfr.im git - irc/freenode/ircd-seven.git/commitdiff
m_message: use same behaviour for +R users as +g users (closes #96)
authorWilliam Pitcock <redacted>
Sat, 5 Dec 2015 12:48:38 +0000 (06:48 -0600)
committerMike Quin <redacted>
Tue, 7 Aug 2018 12:01:46 +0000 (12:01 +0000)
modules/core/m_message.c

index 60f424be2b3b714f0a983ef8e0fb45722752984c..844f32adb83e50e979ce3643fcbeae3de7de190e 100644 (file)
@@ -823,7 +823,9 @@ msg_client(enum message_type msgtype,
                 * as a way to taunt users, e.g. harass them and hide behind +g
                 * as a way of griefing.  --nenolod
                 */
-               if(msgtype != MESSAGE_TYPE_NOTICE && IsSetCallerId(source_p) &&
+               if(msgtype != MESSAGE_TYPE_NOTICE &&
+                               (IsSetCallerId(source_p) ||
+                                (IsSetRegOnlyMsg(source_p) && !target_p->user->suser[0])) &&
                                !accept_message(target_p, source_p) &&
                                !IsAnyOper(target_p))
                {