PR announcement spam prevention

This commit is contained in:
CitadelStationBot
2017-05-01 12:47:22 -05:00
parent 1842665af6
commit 7afd85e3fc
+10
View File
@@ -0,0 +1,10 @@
diff a/code/world.dm b/code/world.dm (rejected hunks)
@@ -184,7 +184,7 @@
return
#define CHAT_PULLR 64 //defined in preferences.dm, but not available here at compilation time
- for(var/client/C in clients)
+ for(var/client/C in GLOB.clients)
if(C.prefs && (C.prefs.chat_toggles & CHAT_PULLR))
C << "<span class='announce'>PR: [announcement]</span>"
#undef CHAT_PULLR