mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
20 lines
614 B
C++
20 lines
614 B
C++
#include "world_console_connection.h"
|
|
#include <string.h>
|
|
#include <stdarg.h>
|
|
|
|
void WorldConsoleTCPConnection::SendEmoteMessage(const char *to, uint32 to_guilddbid, int16 to_minstatus, uint32 type, const char *message, ...)
|
|
{
|
|
va_list argptr;
|
|
char buffer[1024];
|
|
|
|
va_start(argptr, message);
|
|
vsnprintf(buffer, sizeof(buffer), message, argptr);
|
|
va_end(argptr);
|
|
SendEmoteMessageRaw(to, to_guilddbid, to_minstatus, type, buffer);
|
|
}
|
|
|
|
void WorldConsoleTCPConnection::SendEmoteMessageRaw(const char *to, uint32 to_guilddbid, int16 to_minstatus, uint32 type, const char *message)
|
|
{
|
|
m_connection->SendLine(message);
|
|
}
|