Backport c1fc044c to release/3.5

This commit is contained in:
Aaron Jones 2016-08-31 14:15:28 +00:00
parent c9c2d6ea12
commit c2af499d4d
No known key found for this signature in database
GPG key ID: EC6F86EE9CD840B5

View file

@ -1385,17 +1385,14 @@ construct_umodebuf(void)
if (user_modes[i] == 0) if (user_modes[i] == 0)
{ {
orphaned_umodes |= prev_user_modes[i]; orphaned_umodes |= 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]; user_modes[i] = prev_user_modes[i];
} }
else
orphaned_umodes &= ~prev_user_modes[i];
}
else else
prev_user_modes[i] = user_modes[i]; prev_user_modes[i] = user_modes[i];
if (user_modes[i]) if (user_modes[i])
*ptr++ = (char) i; *ptr++ = (char) i;
} }