From fbdbc4d5d3cd61086500d2406f3345da55627a56 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sun, 27 May 2018 13:53:14 +0900 Subject: Message max length is 4096 UTF8 characters --- src/EventHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/EventHandler.cpp') 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(); -- cgit v1.2.3