When a nick contains a PREFIX symbol that isn't at the beginning of
the nick, the _kiwi.model.Member#stripPrefix function would still
count it as a part of the prefix and remove an unrelated character
from the front of the nick.
return prefix;\r
},\r
stripPrefix: function (nick) {\r
- var tmp = nick, i, j, k;\r
+ var tmp = nick, i, j, k, cont = false;\r
var user_prefixes = _kiwi.gateway.get('user_prefixes');\r
i = 0;\r
\r
for (k = 0; k < user_prefixes.length; k++) {\r
if (nick.charAt(j) === user_prefixes[k].symbol) {\r
i++;\r
+ cont = true;\r
break;\r
}\r
}\r
+ if (!cont) {\r
+ break;\r
+ }\r
+ cont = false;\r
}\r
\r
return tmp.substr(i);\r