summaryrefslogtreecommitdiff
path: root/src/net/tmwa/guildhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-07 00:53:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-07 00:53:20 +0300
commitb79975c115473e801fb7983bc3f5c24ae72f3db7 (patch)
treefaaa07611f84792a84026d38417988a703cf1e3f /src/net/tmwa/guildhandler.cpp
parentc623250fbc8524a1ab78791595bf1fc4344fec49 (diff)
downloadmv-b79975c115473e801fb7983bc3f5c24ae72f3db7.tar.gz
mv-b79975c115473e801fb7983bc3f5c24ae72f3db7.tar.bz2
mv-b79975c115473e801fb7983bc3f5c24ae72f3db7.tar.xz
mv-b79975c115473e801fb7983bc3f5c24ae72f3db7.zip
Move processGuildMemberLogin from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/tmwa/guildhandler.cpp')
-rw-r--r--src/net/tmwa/guildhandler.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/net/tmwa/guildhandler.cpp b/src/net/tmwa/guildhandler.cpp
index 24bb06514..8226bea3f 100644
--- a/src/net/tmwa/guildhandler.cpp
+++ b/src/net/tmwa/guildhandler.cpp
@@ -28,6 +28,7 @@
#include "being/playerinfo.h"
#include "gui/windows/chatwindow.h"
+#include "gui/windows/socialwindow.h"
#include "net/serverfeatures.h"
@@ -379,4 +380,23 @@ void GuildHandler::processGuildPositionInfo(Net::MessageIn &msg) const
emblem, posMode, guildName.c_str());
}
+void GuildHandler::processGuildMemberLogin(Net::MessageIn &msg) const
+{
+ const int accountId = msg.readInt32("account id");
+ const int charId = msg.readInt32("char id");
+ const int online = msg.readInt32("flag");
+ if (Ea::taGuild)
+ {
+ GuildMember *const m = Ea::taGuild->getMember(accountId, charId);
+ if (m)
+ {
+ m->setOnline(online);
+ if (Ea::guildTab)
+ Ea::guildTab->showOnline(m->getName(), online);
+ if (socialWindow)
+ socialWindow->updateGuildCounter();
+ }
+ }
+}
+
} // namespace TmwAthena