m_message: use same behaviour for +R users as +g users (closes #96)

This commit is contained in:
William Pitcock 2015-12-05 06:48:38 -06:00
parent 677d3cb1a3
commit a7433e330a

View file

@ -727,7 +727,9 @@ msg_client(enum message_type msgtype,
* as a way to taunt users, e.g. harass them and hide behind +g * as a way to taunt users, e.g. harass them and hide behind +g
* as a way of griefing. --nenolod * 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) && !accept_message(target_p, source_p) &&
!IsOper(target_p)) !IsOper(target_p))
{ {