Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
Revert "ircd: Fix umode orphan scheme."
Browse files Browse the repository at this point in the history
This reverts commit c1fc044.
  • Loading branch information
nomis committed Aug 31, 2019
1 parent 24b8fd0 commit a74ee5d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/s_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a74ee5d

Please sign in to comment.