From a74ee5d2c7265dc52d857af0645934c60758b3e3 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sat, 31 Aug 2019 15:06:30 +0100 Subject: [PATCH] Revert "ircd: Fix umode orphan scheme." This reverts commit c1fc044c3594798cc5389486c361a7d9a43bc4f8. --- src/s_user.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/s_user.c b/src/s_user.c index 6504b2a2b..b8e0ff15d 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -1385,14 +1385,17 @@ construct_umodebuf(void) if (user_modes[i] == 0) { orphaned_umodes |= prev_user_modes[i]; - user_modes[i] = prev_user_modes[i]; + sendto_realops_snomask(SNO_DEBUG, L_ALL, "Umode +%c is now orphaned", i); } else + { orphaned_umodes &= ~prev_user_modes[i]; + sendto_realops_snomask(SNO_DEBUG, L_ALL, "Orphaned umode +%c is picked up by module", i); + } + user_modes[i] = prev_user_modes[i]; } else prev_user_modes[i] = user_modes[i]; - if (user_modes[i]) *ptr++ = (char) i; }