--- a/QTfrontend/net/newnetclient.cpp Fri Sep 23 12:47:47 2022 -0400
+++ b/QTfrontend/net/newnetclient.cpp Tue Sep 27 14:59:03 2022 +0300
@@ -394,7 +394,7 @@
if (lst[0] == "ROOMS")
{
- if(lst.size() % 9 != 1)
+ if(lst.size() % m_roomsListModel->columnCountSupported() != 1)
{
qWarning("Net: Malformed ROOMS message");
return;
@@ -644,7 +644,7 @@
return;
}
- if(lst[0] == "ROOM" && lst.size() == 11 && lst[1] == "ADD")
+ if(lst[0] == "ROOM" && lst.size() == m_roomsListModel->columnCountSupported() + 2 && lst[1] == "ADD")
{
QStringList tmp = lst;
tmp.removeFirst();
@@ -654,7 +654,7 @@
return;
}
- if(lst[0] == "ROOM" && lst.size() == 12 && lst[1] == "UPD")
+ if(lst[0] == "ROOM" && lst.size() == m_roomsListModel->columnCountSupported() + 3 && lst[1] == "UPD")
{
QStringList tmp = lst;
tmp.removeFirst();