diff --git a/ircd/s_user.c b/ircd/s_user.c index b18df182..625cfcbd 100644 --- a/ircd/s_user.c +++ b/ircd/s_user.c @@ -1477,17 +1477,14 @@ construct_umodebuf(void) if (user_modes[i] == 0) { orphaned_umodes |= prev_user_modes[i]; - sendto_realops_snomask(SNO_DEBUG, L_ALL, "Umode +%c is now orphaned", i); + user_modes[i] = prev_user_modes[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; }