summaryrefslogtreecommitdiff
path: root/src/EventHandler.cpp
diff options
context:
space:
mode:
authorOleg Morozenkov <omorozenkov@gmail.com>2018-05-27 22:30:51 +0300
committerGitHub <noreply@github.com>2018-05-27 22:30:51 +0300
commit9804b269d19e3db1c0aada27c47f8748bfff40a0 (patch)
tree5d60a94e485ec3d1cbe2b3e7e6264fd7580631ca /src/EventHandler.cpp
parentb538f1fb43c790c9043630e6bfad42f037dbe03a (diff)
parentfd2a6ae6f5a101855bf2b7983472e3475278c608 (diff)
Merge pull request #61 from JellyBrick/master
Bot API 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();