Enable sending of a global message box through the irc bot, to inform clients about server reboots.

This commit is contained in:
lotodore
2008-12-26 16:47:14 +00:00
parent 36ef30bedc
commit 23c3ae3849
14 changed files with 196 additions and 6 deletions
+7
View File
@@ -705,6 +705,13 @@ AbstractClientStateReceiving::Process(ClientThread &client)
if (!playerName.empty())
client.GetCallback().SignalNetClientChatMsg(playerName, chatData.text);
}
else if (tmpPacket->ToNetPacketMsgBoxText())
{
// Message box - display it in the GUI.
NetPacketMsgBoxText::Data msgData;
tmpPacket->ToNetPacketMsgBoxText()->GetData(msgData);
client.GetCallback().SignalNetClientMsgBox(msgData.text);
}
else if (tmpPacket->ToNetPacketPlayerLeft())
{
// A player left the game.