summaryrefslogtreecommitdiff
path: root/src/EventHandler.cpp
diff options
context:
space:
mode:
authorJellyBrick <shlee1503@naver.com>2018-05-27 16:47:43 +0900
committerGitHub <noreply@github.com>2018-05-27 16:47:43 +0900
commita1e7e4db6da26bb63c3befe818de5ef60fdd049b (patch)
treeb341aff55cbccf3d695dc967b12b1dc17b8271f6 /src/EventHandler.cpp
parent66cbca3b206567ce62af42cab950696ef6f80adb (diff)
parent1deb50e9db6e1b668af8c993b449d59f001c8977 (diff)
Merge pull request #1 from JellyBrick/botapi
Bot api 3.1 update
Diffstat (limited to 'src/EventHandler.cpp')
-rw-r--r--src/EventHandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/EventHandler.cpp b/src/EventHandler.cpp
index 32efe3e..ba0ce54 100644
--- a/src/EventHandler.cpp
+++ b/src/EventHandler.cpp
@@ -26,9 +26,9 @@ void EventHandler::handleMessage(const Message::Ptr message) const {
_broadcaster->broadcastAnyMessage(message);
if (StringTools::startsWith(message->text, "/")) {
- uint32_t splitPosition;
- uint32_t spacePosition = message->text.find(' ');
- uint32_t atSymbolPosition = message->text.find('@');
+ uint16_t splitPosition;
+ uint16_t spacePosition = message->text.find(' ');
+ uint16_t atSymbolPosition = message->text.find('@');
if (spacePosition == message->text.npos) {
if (atSymbolPosition == message->text.npos) {
splitPosition = message->text.size();