summaryrefslogtreecommitdiff
path: root/src/net/eathena/guildhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/guildhandler.cpp')
-rw-r--r--src/net/eathena/guildhandler.cpp10
1 files changed, 10 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