diff --git a/src/botlib/profiles.qc b/src/botlib/profiles.qc index 8b4d26e1..f6d416d3 100644 --- a/src/botlib/profiles.qc +++ b/src/botlib/profiles.qc @@ -17,9 +17,13 @@ bool Bot_ExistsInServer(string botName) { + string noColor1 = strdecolorize(botName); + for (entity e = world;(e = find(e, ::classname, "player"));) { if (clienttype(e) == CLIENTTYPE_BOT) { - if (e.netname == botName) { + string noColor2 = strdecolorize(e.netname); + + if (noColor1 == noColor2) { return (true); } }