From 693574da197d3d00d3cadaf7eada9dd1c51fafe2 Mon Sep 17 00:00:00 2001 From: Mloc-Argent Date: Sat, 1 Nov 2014 21:40:01 +0000 Subject: [PATCH] update IsGuestKey for webclient guests Signed-off-by: Mloc-Argent --- code/__HELPERS/unsorted.dm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index ee3648fea2..4a21302777 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -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 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) if (ch < 48 || ch > 57) return 0