summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-20 20:04:42 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-20 20:04:42 +0300
commit2dc33d6d6b20364fff5cdc74e2f6875124318e09 (patch)
tree933c608015b28aa69388f490ea09ae62c1646994 /src/net/eathena
parent4638aca892fe87611626e0579de41122b14bf9fe (diff)
downloadplus-2dc33d6d6b20364fff5cdc74e2f6875124318e09.tar.gz
plus-2dc33d6d6b20364fff5cdc74e2f6875124318e09.tar.bz2
plus-2dc33d6d6b20364fff5cdc74e2f6875124318e09.tar.xz
plus-2dc33d6d6b20364fff5cdc74e2f6875124318e09.zip
eathena: impliment packet CMSG_GUILD_CHANGE_EMBLEM.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/guildhandler.cpp10
-rw-r--r--src/net/eathena/guildhandler.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp
index bcd13afab..e7f61218d 100644
--- a/src/net/eathena/guildhandler.cpp
+++ b/src/net/eathena/guildhandler.cpp
@@ -507,4 +507,14 @@ void GuildHandler::breakGuild(const std::string &name) const
outMsg.writeString(name, 40, "name");
}
+void GuildHandler::changeEmblem(std::string emblem) const
+{
+ createOutPacket(CMSG_GUILD_CHANGE_EMBLEM);
+ if (emblem.size() > 200)
+ emblem = emblem.substr(0, 200);
+ const int sz = emblem.size();
+ outMsg.writeInt16(sz + 4, "len");
+ outMsg.writeString(emblem, sz, "emblem");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/guildhandler.h b/src/net/eathena/guildhandler.h
index d74bcd82a..d3eb21664 100644
--- a/src/net/eathena/guildhandler.h
+++ b/src/net/eathena/guildhandler.h
@@ -88,6 +88,8 @@ class GuildHandler final : public Ea::GuildHandler, public MessageHandler
void breakGuild(const std::string &name) const override final;
+ void changeEmblem(std::string emblem) const override final;
+
protected:
static void processGuildUpdateCoords(Net::MessageIn &msg);