mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
some server code
This commit is contained in:
parent
6923c98dc2
commit
29bf3d3774
18 changed files with 729 additions and 137 deletions
|
|
@ -22,7 +22,6 @@ bool ProtocolItem::read(QXmlStreamReader *xml)
|
|||
if (xml->name() == getItemType()) {
|
||||
extractParameters();
|
||||
qDebug() << "FERTIG";
|
||||
deleteLater();
|
||||
return true;
|
||||
} else {
|
||||
QString tagName = xml->name().toString();
|
||||
|
|
@ -111,6 +110,7 @@ void ProtocolResponse::extractParameters()
|
|||
void ProtocolResponse::initializeHash()
|
||||
{
|
||||
responseHash.insert("ok", RespOk);
|
||||
responseHash.insert("invalid_command", RespInvalidCommand);
|
||||
responseHash.insert("name_not_found", RespNameNotFound);
|
||||
responseHash.insert("login_needed", RespLoginNeeded);
|
||||
responseHash.insert("context_error", RespContextError);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue