Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
Update SwearJarPlugin.php
Browse files Browse the repository at this point in the history
I think I made it case insensitive!
  • Loading branch information
michaelcpuckett committed Sep 5, 2012
1 parent 5a2a23f commit ffe9332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwearJarPlugin.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function init()
$swear_jar = array(); $swear_jar = array();


// Don't say bad words, kids. // Don't say bad words, kids.
$re = '/' . implode('|', $swears) . '/'; $re = '/' . implode('|', $swears) . '/i';
$this->bot->onChannel($re, function($request, $matches) use (&$swear_jar) { $this->bot->onChannel($re, function($request, $matches) use (&$swear_jar) {
$cost = 0.25; $cost = 0.25;
$who = $request->getSendingUser(); $who = $request->getSendingUser();
Expand Down

0 comments on commit ffe9332

Please sign in to comment.