summaryrefslogtreecommitdiff
path: root/npc/003-0-1/professor.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-12-04 22:14:31 -0300
committerJesusaves <cpntb1@ymail.com>2022-12-04 22:14:31 -0300
commit51e0b96adca8d1d79ce3af48e8ca42858ae4b7d2 (patch)
treefa5407f2d8505a739fd5f15b937ee2d8c10cb9db /npc/003-0-1/professor.txt
parent04b51f13900ac310c6f4edb31d533e3a4963579b (diff)
downloadserverdata-51e0b96adca8d1d79ce3af48e8ca42858ae4b7d2.tar.gz
serverdata-51e0b96adca8d1d79ce3af48e8ca42858ae4b7d2.tar.bz2
serverdata-51e0b96adca8d1d79ce3af48e8ca42858ae4b7d2.tar.xz
serverdata-51e0b96adca8d1d79ce3af48e8ca42858ae4b7d2.zip
Fix vulnerability
Diffstat (limited to 'npc/003-0-1/professor.txt')
-rw-r--r--npc/003-0-1/professor.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/npc/003-0-1/professor.txt b/npc/003-0-1/professor.txt
index 025b11568..c361c3184 100644
--- a/npc/003-0-1/professor.txt
+++ b/npc/003-0-1/professor.txt
@@ -47,6 +47,7 @@ OnTimer3100:
end;
OnSpeeching:
+ if (!playerattached()) end;
if (ispcdead()) end;
deltimer(.name$+"::OnSpeeching"); // safeguard
// Max AFK time is determined as 30 minutes + 1 second every 10 minutes AFKed