To add the GM name in /notice command is it somewhere in this function?
Code:
struct notice_packet_func
{
const char * m_str;
bool m_big;
notice_packet_func(const char * str, bool big = false) : m_str(str), m_big(big)
{
}
void operator () (LPDESC d)
{
if (!d->GetCharacter())
return;
d->GetCharacter()->ChatPacket(m_big == true ? CHAT_TYPE_BIG_NOTICE : CHAT_TYPE_NOTICE, "%s", m_str);
}
};