MCPcopy Create free account
hub / github.com/EQEmu/EQEmu / MessageStatus

Method MessageStatus

zone/entity.cpp:2354–2371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2352}
2353
2354void EntityList::MessageStatus(uint32 to_guild_id, int to_minstatus, uint32 type, const char *message, ...)
2355{
2356 va_list argptr;
2357 char buffer[4096];
2358
2359 va_start(argptr, message);
2360 vsnprintf(buffer, 4096, message, argptr);
2361 va_end(argptr);
2362
2363 auto it = client_list.begin();
2364 while (it != client_list.end()) {
2365 Client *client = it->second;
2366 if ((to_guild_id == 0 || client->IsInGuild(to_guild_id)) && client->Admin() >= to_minstatus) {
2367 client->Message(type, buffer);
2368 }
2369 ++it;
2370 }
2371}
2372
2373/**
2374 * @param sender

Callers 5

gmsayMethod · 0.45
HandleMessageMethod · 0.45
SendEmoteMessageMethod · 0.45

Calls 5

beginMethod · 0.45
endMethod · 0.45
IsInGuildMethod · 0.45
AdminMethod · 0.45
MessageMethod · 0.45

Tested by

no test coverage detected