summaryrefslogtreecommitdiff
path: root/src/EventHandler.cpp
diff options
context:
space:
mode:
authorOleg Morozenkov <omorozenkov@gmail.com>2018-05-26 16:16:13 +0300
committerGitHub <noreply@github.com>2018-05-26 16:16:13 +0300
commitb538f1fb43c790c9043630e6bfad42f037dbe03a (patch)
treee932ad8f364ddfa108e633a3624371a569936fdb /src/EventHandler.cpp
parent987adf188619011acff2052301245e4df22a38d2 (diff)
parentad40032ec5608af2fd94b28cbfe498a7313c3af0 (diff)
Merge pull request #60 from JellyBrick/master
Improve performance
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 d679683..32efe3e 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, "/")) {
- unsigned long splitPosition;
- unsigned long spacePosition = message->text.find(' ');
- unsigned long atSymbolPosition = message->text.find('@');
+ uint32_t splitPosition;
+ uint32_t spacePosition = message->text.find(' ');
+ uint32_t atSymbolPosition = message->text.find('@');
if (spacePosition == message->text.npos) {
if (atSymbolPosition == message->text.npos) {
splitPosition = message->text.size();