ircd: Fix umode orphan scheme.

Cherry-picked from jevolk/charybdis f5e7f335
Reformatted slightly.
This commit is contained in:
Jason Volk 2016-08-24 06:14:47 -07:00 committed by Aaron Jones
parent f4e9d91580
commit c1fc044c35
No known key found for this signature in database
GPG key ID: EC6F86EE9CD840B5

View file

@ -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;
}