]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/core/m_message.c
Stop griefing through taunting while hiding behind CALLERID.
[irc/rqf/shadowircd.git] / modules / core / m_message.c
index c5d852b970480fbf1bea8ff5d6e1457487e49d99..162cef6e1e4afc6c417d921e10bdec90b022b3be 100644 (file)
@@ -783,6 +783,17 @@ msg_client(int p_or_n, const char *command,
                sendto_one_numeric(source_p, RPL_AWAY, form_str(RPL_AWAY),
                                   target_p->name, target_p->user->away);
 
+       /*
+        * XXX: Controversial? Allow target users to send replies through a +g.
+        * Rationale is that people can presently use +g as a way to taunt users,
+        * e.g. harass them and hide behind +g as a way of griefing.  --nenolod
+        */
+       if(MyClient(source_p) && IsSetCallerId(source_p) && !accept_message(target_p, source_p))
+       {
+               rb_dlinkAddAlloc(target_p, &source_p->localClient->allow_list);
+               rb_dlinkAddAlloc(source_p, &target_p->on_allow_list);
+       }
+
        if(MyClient(target_p))
        {
                if (IsSetNoCTCP(target_p) && p_or_n != NOTICE && *text == '\001' && strncasecmp(text + 1, "ACTION", 6))