Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Remove MG_ and _NNN from Players List
Remove MG_ and _NNN from Players List but not inside chat, that is for another day.
  • Loading branch information
alketii committed Mar 20, 2018
1 parent 9cb45df commit 045b0b88e051f7163fbef42fa0adc63a326ca186
Showing with 7 additions and 1 deletion.
  1. +7 −1 source/glest_game/menu/menu_state_masterserver.cpp
@@ -1278,7 +1278,13 @@ namespace Glest
button->setFont (CoreData::getInstance ().getDisplayFontSmall ());
button->setFont3D (CoreData::getInstance ().
getDisplayFontSmall3D ());
button->setText (nickList[i]);

if (strncmp (&nickList[i][0], "ZG_", 3) == 0) {
button->setText (nickList[i].substr(3,nickList[i].length()-7));
} else {
button->setText (nickList[i]);
}

if (strncmp (&nickList[i][0], "ZG_", 3) != 0
|| &nickList[i][0] == currentIrcNick)
{

0 comments on commit 045b0b8

Please sign in to comment.