Don't allow % in faction descriptions.

Was messing up string formatting. Fixes #490
This commit is contained in:
drtshock
2015-08-06 16:09:07 -05:00
parent 786f2d655f
commit 8926d0b434
2 changed files with 6 additions and 1 deletions

View File

@@ -90,6 +90,9 @@ public class CmdShow extends FCommand {
// replaces all variables with no home TL
parsed = parsed.substring(0, parsed.indexOf("{ig}")) + TL.COMMAND_SHOW_NOHOME.toString();
}
if(parsed.contains("%")) {
parsed = parsed.replaceAll("%", ""); // Just in case it got in there before we disallowed it.
}
msg(p.txt.parse(parsed));
}
}