update IsGuestKey for webclient guests

Signed-off-by: Mloc-Argent <colmohici@gmail.com>
This commit is contained in:
Mloc-Argent
2014-11-01 21:40:01 +00:00
parent 119e0a89ff
commit 693574da19

View File

@@ -228,9 +228,12 @@ Turf and target are seperate in case you want to teleport some distance from a t
if (findtext(key, "Guest-", 1, 7) != 1) //was findtextEx if (findtext(key, "Guest-", 1, 7) != 1) //was findtextEx
return 0 return 0
var/i, ch, len = length(key) var/i = 7, ch, len = length(key)
for (i = 7, i <= len, ++i) if(copytext(key, 7, 8) == "W") //webclient
i++
for (, i <= len, ++i)
ch = text2ascii(key, i) ch = text2ascii(key, i)
if (ch < 48 || ch > 57) if (ch < 48 || ch > 57)
return 0 return 0