mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 00:23:55 -07:00
Merge 4f457d9543 into 80426d77bc
This commit is contained in:
commit
ff4f92f474
4 changed files with 27 additions and 0 deletions
|
|
@ -90,6 +90,10 @@ public:
|
|||
{
|
||||
return QString();
|
||||
}
|
||||
virtual SessionEvent *getLoginSessionEvent() const
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
virtual QString getRequiredFeatures() const
|
||||
{
|
||||
return QString();
|
||||
|
|
|
|||
|
|
@ -562,6 +562,11 @@ Response::ResponseCode Server_ProtocolHandler::cmdLogin(const Command_Login &cmd
|
|||
event.set_message(server->getLoginMessage().toStdString());
|
||||
rc.enqueuePostResponseItem(ServerMessage::SESSION_EVENT, prepareSessionEvent(event));
|
||||
|
||||
SessionEvent *loginEvent = server->getLoginSessionEvent();
|
||||
if (loginEvent) {
|
||||
rc.enqueuePostResponseItem(ServerMessage::SESSION_EVENT, loginEvent);
|
||||
}
|
||||
|
||||
auto *re = new Response_Login;
|
||||
re->mutable_user_info()->CopyFrom(copyUserInfo(true));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue