]> jfr.im git - solanum.git/blobdiff - modules/um_callerid.c
reference.conf: add drain_reason
[solanum.git] / modules / um_callerid.c
index 12b9033b090d54ce4054ef1de75536b5d01d8027..897435982064c7eadf7833c25b8d93ffec649198 100644 (file)
@@ -96,10 +96,12 @@ allow_message(struct Client *source_p, struct Client *target_p)
        if (!IsSetAnyCallerID(target_p))
                return true;
 
-       if (IsSetRelaxedCallerID(target_p) && has_common_channel(source_p, target_p) && !IsSetStrictCallerID(target_p))
+       if (!IsPerson(source_p))
                return true;
 
-       if (IsServer(source_p))
+       if (IsSetRelaxedCallerID(target_p) &&
+                       !IsSetStrictCallerID(target_p) &&
+                       has_common_channel(source_p, target_p))
                return true;
 
        /* XXX: controversial?  allow opers to send through +g */