Show message whether avatar report was successful.

This commit is contained in:
lotodore
2011-01-16 16:35:54 +00:00
parent 2d05ccbafe
commit 5f8e662457
3 changed files with 31 additions and 3 deletions
+18
View File
@@ -923,6 +923,24 @@ AbstractClientStateReceiving::HandlePacket(boost::shared_ptr<ClientThread> clien
client->SetUnknownAvatar(requestId);
}
}
else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_reportAvatarAckMessage)
{
ReportAvatarAckMessage_t *netReportAck = &tmpPacket->GetMsg()->choice.reportAvatarAckMessage;
unsigned msgCode;
switch (netReportAck->reportResult)
{
case reportResult_avatarReportAccepted:
msgCode = MSG_NET_AVATAR_REPORT_ACCEPTED;
break;
case reportResult_avatarReportDuplicate:
msgCode = MSG_NET_AVATAR_REPORT_DUP;
break;
default:
msgCode = MSG_NET_AVATAR_REPORT_REJECTED;
break;
}
client->GetCallback().SignalNetClientMsgBox(msgCode);
}
else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_statisticsMessage)
{
StatisticsMessage_t *netStatistics = &tmpPacket->GetMsg()->choice.statisticsMessage;