mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
16 lines
407 B
C++
Executable File
16 lines
407 B
C++
Executable File
#include "../client.h"
|
|
#include "../worldserver.h"
|
|
|
|
extern WorldServer worldserver;
|
|
|
|
void command_chat(Client *c, const Seperator *sep)
|
|
{
|
|
if (sep->arg[2][0] == 0) {
|
|
c->Message(Chat::White, "Usage: #chat [channum] [message]");
|
|
}
|
|
else if (!worldserver.SendChannelMessage(0, 0, (uint8) atoi(sep->arg[1]), 0, 0, 100, sep->argplus[2])) {
|
|
c->Message(Chat::White, "Error: World server disconnected");
|
|
}
|
|
}
|
|
|