summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJellyBrick <shlee1503@naver.com>2018-05-27 13:53:14 +0900
committerJellyBrick <shlee1503@naver.com>2018-05-27 13:53:14 +0900
commitfbdbc4d5d3cd61086500d2406f3345da55627a56 (patch)
tree56fad3edc76b051c72f9ceaf7ec59c84dba674bc /src
parent66cbca3b206567ce62af42cab950696ef6f80adb (diff)
Message max length is 4096 UTF8 characters
Diffstat (limited to 'src')
-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();