summaryrefslogtreecommitdiffstats
path: root/ajax
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2013-03-05 19:59:55 -0600
committerBlueRaja <BlueRaja.admin@gmail.com>2013-03-05 19:59:55 -0600
commitc594ae830b3a2d0aa8c4925dd832b7e2cc2c548e (patch)
treec011b58371efef62d4a634b1e12ccfe3b050a898 /ajax
parent0f7b5fce63b58fc05bc8dab114668ccafb82b8ff (diff)
downloadpathery-c594ae830b3a2d0aa8c4925dd832b7e2cc2c548e.tar.xz
Added a bunch more unnecessary chat filters
Diffstat (limited to 'ajax')
-rw-r--r--ajax/chat.ajax.php26
1 files changed, 20 insertions, 6 deletions
diff --git a/ajax/chat.ajax.php b/ajax/chat.ajax.php
index 36ac16a..95bcacd 100644
--- a/ajax/chat.ajax.php
+++ b/ajax/chat.ajax.php
@@ -142,20 +142,34 @@ function chatFilter($chat) {
$chat = preg_replace("/[f]+\s*[uv]+\s*[h]*\s*[c\(k]+\s*(([i]*\s*[n]*\s*[g])|([e]*\s*[r]*))*/i", "dumb ", $chat); //fucker / fucking
$chat = preg_replace("/[^a-z]fag(g?[oi]t)?/i", " prince", $chat); //faggot
$chat = preg_replace("/^fag(g?[oi]t)?/i", "prince", $chat); //faggot (beginning of line)
- $chat = str_ireplace("asshole", "dumb", $chat);
- $chat = str_ireplace("damnit", "do'h", $chat);
+ $chat = preg_replace("/^suck\s*my.*(cock|dick|penis)/i", "join me in a riveting game of checkers", $chat); //suck my dick
+
$chat = str_ireplace("damn", "dumb", $chat);
- $chat = str_ireplace("cunt", "dumb", $chat);
$chat = str_ireplace("shit", "dumb", $chat);
- $chat = str_ireplace("bitch", "dumb", $chat);
+ $chat = str_ireplace("sucks ass", "is dumb", $chat);
+ $chat = str_ireplace("suck ass", "are dumb", $chat);
+ $chat = str_ireplace("damnit", "do'h", $chat);
+
+ $chat = str_ireplace("a bitch", "an engaging conversationalist", $chat);
+ $chat = str_ireplace("bitch", "engaging conversationalist", $chat);
+ $chat = str_ireplace("an asshole", "a pleasant person to be around", $chat);
+ $chat = str_ireplace("asshole", "pleasant person to be around", $chat);
+
$chat = str_ireplace("cock", "elbow", $chat);
$chat = str_ireplace("dick", "elbow", $chat);
+ $chat = str_ireplace("penis", "elbow", $chat);
+ $chat = str_ireplace("vagina", "femur bone", $chat);
+ $chat = str_ireplace("cunt", "femur bone", $chat);
+
$chat = str_ireplace("hell", "the supermarket", $chat);
$chat = str_ireplace("whore", "entrepreneur", $chat);
- $chat = str_ireplace("sucks ass", "is dumb", $chat);
- $chat = str_ireplace("suck ass", "are dumb", $chat);
$chat = str_ireplace("stfu", "be still my beating heart", $chat);
$chat = str_ireplace("omfg", "omg", $chat);
+ $chat = str_ireplace("4chan", "NEWT GINGRICH", $chat);
+ $chat = str_ireplace("nigger", "classy gentleman", $chat);
+ $chat = str_ireplace("pedophile", "Optimus Prime", $chat);
+ $chat = str_ireplace("pedo", "Optimus Prime", $chat);
+ $chat = str_ireplace("rape", "shake hands with", $chat);
return $chat;
}