| 2352 | } |
| 2353 | |
| 2354 | void 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 |
no test coverage detected