diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-30 22:51:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-30 22:51:23 +0300 |
commit | ef8ef35d28daa3ea7dd542078ac9c0d3f7a9a5e2 (patch) | |
tree | c3d7c79fca18ac387d0c90512ef3201c92da5890 /src/actions | |
parent | 22b64d16b613c1e5b26632237879b167024788ab (diff) | |
download | plus-ef8ef35d28daa3ea7dd542078ac9c0d3f7a9a5e2.tar.gz plus-ef8ef35d28daa3ea7dd542078ac9c0d3f7a9a5e2.tar.bz2 plus-ef8ef35d28daa3ea7dd542078ac9c0d3f7a9a5e2.tar.xz plus-ef8ef35d28daa3ea7dd542078ac9c0d3f7a9a5e2.zip |
Move some variables to better scope.
Diffstat (limited to 'src/actions')
-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; } |