I haven't done a moderation bot in forever. Infact, I don't think I've made one in C++. Anywho, I remember reading on certain forums about access flags, and turning them into hex values, or something. Apparantly it makes it easier to deal with?
Anyone know about this? Or can explain how this works..
http://forum.valhallalegends.com/index.php?topic=7623.msg69281#msg69281
Alright, I'm pretty sure I understand this. How would you go, though, from the bitfield back to the A-Z equiv?
if ((mask & FLAG_S) == FLAG_S)
{
// S flag
}
if ((mask & FLAG_B) == FLAG_B)
{
// B flag
}
...