diff options
Diffstat (limited to 'src/actions/chat.cpp')
-rw-r--r-- | src/actions/chat.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp index 442597849..307e4556e 100644 --- a/src/actions/chat.cpp +++ b/src/actions/chat.cpp @@ -669,13 +669,16 @@ impHandler(guildNotice) return true; } - 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 != nullptr) - guildHandler->changeNotice(guild->getId(), str1, str2); + { + guildHandler->changeNotice(guild->getId(), + args.substr(0, 60), + str2); + } return true; } |