Added messages
This commit is contained in:
@@ -761,6 +761,27 @@ void SpeakingClient::processJoin() {
|
||||
this->connectTimestamp = chrono::system_clock::now();
|
||||
this->idleTimestamp = chrono::system_clock::now();
|
||||
|
||||
TIMING_STEP(timings, "welcome msg");
|
||||
{
|
||||
std::string message{};
|
||||
config::server::clients::WelcomeMessageType type{config::server::clients::WELCOME_MESSAGE_TYPE_NONE};
|
||||
if(this->getType() == ClientType::CLIENT_TEASPEAK) {
|
||||
message = config::server::clients::extra_welcome_message_teaspeak;
|
||||
type = config::server::clients::extra_welcome_message_type_teaspeak;
|
||||
} else if(this->getType() == ClientType::CLIENT_TEAMSPEAK) {
|
||||
message = config::server::clients::extra_welcome_message_teamspeak;
|
||||
type = config::server::clients::extra_welcome_message_type_teamspeak;
|
||||
} else if(this->getType() == ClientType::CLIENT_WEB) {
|
||||
message = config::server::clients::extra_welcome_message_teaweb;
|
||||
type = config::server::clients::extra_welcome_message_type_teaweb;
|
||||
}
|
||||
|
||||
if(type == config::server::clients::WELCOME_MESSAGE_TYPE_POKE) {
|
||||
this->notifyClientPoke(this->server->serverRoot, message);
|
||||
} else if(type == config::server::clients::WELCOME_MESSAGE_TYPE_CHAT) {
|
||||
this->notifyTextMessage(ChatMessageMode::TEXTMODE_SERVER, this->server->serverRoot, 0, 0, std::chrono::system_clock::now(), message);
|
||||
}
|
||||
}
|
||||
debugMessage(this->getServerId(), "{} Client join timings: {}", CLIENT_STR_LOG_PREFIX, TIMING_FINISH(timings));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user