summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-02-13 01:54:28 +0300
committerAndrei Karas <akaras@inbox.ru>2018-02-13 04:28:32 +0300
commitacba95ebb0119e7b0f9ef01d9bf3577582857253 (patch)
treeb5346c2a5642456e793b28487020cf1c727d8f07 /src/net
parent0a47f5c44ddd5fb5157d116ffe0f5ee5f4207eb0 (diff)
downloadmanaplus-acba95ebb0119e7b0f9ef01d9bf3577582857253.tar.gz
manaplus-acba95ebb0119e7b0f9ef01d9bf3577582857253.tar.bz2
manaplus-acba95ebb0119e7b0f9ef01d9bf3577582857253.tar.xz
manaplus-acba95ebb0119e7b0f9ef01d9bf3577582857253.zip
Add clan window.
For now can be opened only by chat command /clan.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/clanrecv.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/eathena/clanrecv.cpp b/src/net/eathena/clanrecv.cpp
index 7324003b3..c2c5680db 100644
--- a/src/net/eathena/clanrecv.cpp
+++ b/src/net/eathena/clanrecv.cpp
@@ -27,6 +27,7 @@
#include "gui/widgets/tabs/chat/clantab.h"
#include "gui/windows/chatwindow.h"
+#include "gui/windows/clanwindow.h"
#include "net/messagein.h"
@@ -72,17 +73,21 @@ void ClanRecv::processClanInfo(Net::MessageIn &msg)
localClan.stats = info->stats;
}
createTab();
+ clanWindow->updateClan();
}
void ClanRecv::processClanOnlineCount(Net::MessageIn &msg)
{
localClan.onlineMembers = msg.readInt16("online members count");
localClan.totalMembers = msg.readInt16("total members count");
+ clanWindow->updateClanMembers();
}
void ClanRecv::processClanLeave(Net::MessageIn &msg A_UNUSED)
{
delete2(clanTab);
+ localClan.clear();
+ clanWindow->resetClan();
}
void ClanRecv::processClanChat(Net::MessageIn &msg)