summaryrefslogtreecommitdiff
path: root/src/actions/chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/chat.cpp')
-rw-r--r--src/actions/chat.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp
index a3fcef632..a8a7ac827 100644
--- a/src/actions/chat.cpp
+++ b/src/actions/chat.cpp
@@ -646,4 +646,19 @@ impHandler(chatClipboard)
return false;
}
+impHandler(guildNotice)
+{
+ if (!localPlayer)
+ return false;
+ const std::string args = event.args;
+ const std::string str1 = args.substr(0, 60);
+ std::string str2("");
+ if (args.size() > 60)
+ str2 = args.substr(60);
+ const Guild *const guild = localPlayer->getGuild();
+ if (guild)
+ guildHandler->changeNotice(guild->getId(), str1, str2);
+ return true;
+}
+
} // namespace Actions