From e4db794117dc4ed063a7979c5bb20855c3949c27 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Wed, 23 Nov 2011 20:22:22 +0200 Subject: [PATCH] Do not allow creation of All 0 or All 5 named chars, it gets renamed to something else --- gui/characterEditor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui/characterEditor.py b/gui/characterEditor.py index 3aff2874f..d8af0a122 100644 --- a/gui/characterEditor.py +++ b/gui/characterEditor.py @@ -223,6 +223,10 @@ class CharacterEditor(wx.Frame): def processRename(self, event): cChar = service.Character.getInstance() newName = self.characterRename.GetLineText(0) + + if newName == "All 0" or newName == "All 5": + newName = newName + " bases are belong to us" + charID = self.getActiveCharacter() cChar.rename(charID, newName)