From dc5d1d012a7998ef8ff7f332298886b1abe2cdf7 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 26 Jun 2020 12:03:43 -0600 Subject: [PATCH] regonlymsg: fix allow_message() return values --- modules/um_regonlymsg.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/um_regonlymsg.c b/modules/um_regonlymsg.c index 75467401..27d4653f 100644 --- a/modules/um_regonlymsg.c +++ b/modules/um_regonlymsg.c @@ -66,22 +66,22 @@ static bool allow_message(struct Client *source_p, struct Client *target_p) { if (!IsSetRegOnlyMsg(target_p)) - return false; + return true; if (IsServer(source_p)) - return false; + return true; /* XXX: controversial? allow opers to send through +R */ if (IsOper(source_p)) - return false; + return true; if (accept_message(source_p, target_p)) - return false; + return true; if (source_p->user->suser[0]) - return false; + return true; - return true; + return false; } static void