summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r--src/utils/stringutils.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index 8af8ea547..3aa3cee02 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -734,7 +734,9 @@ void secureChatCommand(std::string &str)
bool parse2Int(const std::string &args, int &x, int &y)
{
bool isValid = false;
- const size_t pos = args.find(" ");
+ size_t pos = args.find(" ");
+ if (pos == std::string::npos)
+ pos = args.find(",");
if (pos != std::string::npos)
{
if (pos + 1 < args.length())