if (ch->GetGMLevel() == GM_IMPLEMENTOR) // check if GM is Implementor
else if (ch->GetGMLevel() == GM_HIGH_WIZARD) // if not, check if GM is HW
else if (ch->GetGMLevel() == GM_LOW_WIZARD) // if not, check if GM is LW
else if (ch->GetGMLevel() == GM_GOD) // if not, check if GM is God
switch(ch->GetGMLevel() ) { // Put the switch of GetGMLevel()
case GM_IMPLEMENTOR: // if GetGMLevel() is marked as Implementor (first check) then :
strlcpy(buf, LC_TEXT("Implementor"), sizeof(buf));
std::string staff_color = "|cFFFFC700|H|h[";
staff_color += buf;
staff_color += "]|cFFA7FFD4|H|h";
sprintf(chatbuf_global, "%s %s", staff_color.c_str(), chatbuf);
case GM_HIGH_WIZARD: // if GetGMLevel() is marked as HW (first check) then :
strlcpy(buf, LC_TEXT("High"), sizeof(buf));
std::string staff_color = "|cFFFFC700|H|h[";
staff_color += buf;
staff_color += "]|cFFA7FFD4|H|h";
sprintf(chatbuf_global, "%s %s", staff_color.c_str(), chatbuf);
}