From 4c4153f248c23106b0aabc03d26d19dfc369586a Mon Sep 17 00:00:00 2001 From: "baloh.matevz" Date: Wed, 11 Jul 2012 00:47:44 +0000 Subject: [PATCH] - Added a 2 minute cool-down for adminhelps. You may now only adminhelp once per 2 minutes. So write the information you want to write in one adminhelp and then reply via admin PM-s! This obviously does not apply to PM-s. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4030 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/admin/verbs/adminhelp.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/admin/verbs/adminhelp.dm b/code/modules/admin/verbs/adminhelp.dm index c98dcb4b565..065d2c116ac 100644 --- a/code/modules/admin/verbs/adminhelp.dm +++ b/code/modules/admin/verbs/adminhelp.dm @@ -14,6 +14,10 @@ var/list/adminhelp_ignored_words = list("unknown","the","a","an", "monkey", "ali if (src.handle_spam_prevention(msg,MUTE_ADMINHELP)) return + src.verbs -= /client/verb/adminhelp + spawn(1200) + src.verbs += /client/verb/adminhelp // 2 minute cool-down for adminhelps + if(!msg) return msg = sanitize(copytext(msg,1,MAX_MESSAGE_LEN)) if (!msg) return