summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/whoisonline.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp
index dafbb0419..40d85f387 100644
--- a/src/gui/windows/whoisonline.cpp
+++ b/src/gui/windows/whoisonline.cpp
@@ -343,6 +343,7 @@ void WhoIsOnline::loadWebList()
// Tokenize and add each line separately
char *line = strtok(mMemoryBuffer, "\n");
const std::string gmText("(GM)");
+ const std::string gmText2("(gm)");
FOR_EACH (std::set<OnlinePlayer*>::iterator, itd, mOnlinePlayers)
delete *itd;
@@ -380,6 +381,15 @@ void WhoIsOnline::loadWebList()
lineStr = lineStr.substr(pos + gmText.length());
isGM = true;
}
+ else
+ {
+ pos = lineStr.find(gmText2, 0);
+ if (pos != std::string::npos)
+ {
+ lineStr = lineStr.substr(pos + gmText.length());
+ isGM = true;
+ }
+ }
trim(lineStr);
pos = lineStr.find("/", 0);