| 2309 | } |
| 2310 | |
| 2311 | void EntityList::Message(uint32 to_guilddbid, uint32 type, const char *message, ...) |
| 2312 | { |
| 2313 | va_list argptr; |
| 2314 | char buffer[4096]; |
| 2315 | |
| 2316 | va_start(argptr, message); |
| 2317 | vsnprintf(buffer, 4096, message, argptr); |
| 2318 | va_end(argptr); |
| 2319 | |
| 2320 | auto it = client_list.begin(); |
| 2321 | while (it != client_list.end()) { |
| 2322 | Client *client = it->second; |
| 2323 | if (to_guilddbid == 0 || client->IsInGuild(to_guilddbid)) |
| 2324 | client->Message(type, buffer); |
| 2325 | ++it; |
| 2326 | } |
| 2327 | } |
| 2328 | |
| 2329 | void EntityList::QueueClientsGuild(const EQApplicationPacket *app, uint32 guild_id) |
| 2330 | { |
no test coverage detected