From 4436a7ca73eec154f2cc12a2340790220c256efe Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 26 Jun 2020 19:46:57 +0000 Subject: [PATCH] regonlymsg: allow messages through if target is not a local client --- modules/um_regonlymsg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/um_regonlymsg.c b/modules/um_regonlymsg.c index 79ca4cd6..00a7b2ad 100644 --- a/modules/um_regonlymsg.c +++ b/modules/um_regonlymsg.c @@ -65,6 +65,9 @@ static const char um_regonlymsg_desc[] = static bool allow_message(struct Client *source_p, struct Client *target_p) { + if (!MyClient(target_p)) + return true; + if (!IsSetRegOnlyMsg(target_p)) return true;