From 4afae844a82a7a88a5bfc1a02e4a269190e87dbc Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 17 Feb 2007 10:28:42 +0000 Subject: bans plugin: fix badword regular expression creation --- data/rbot/plugins/bans.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data') diff --git a/data/rbot/plugins/bans.rb b/data/rbot/plugins/bans.rb index 39f50b00..dfbe116d 100644 --- a/data/rbot/plugins/bans.rb +++ b/data/rbot/plugins/bans.rb @@ -41,7 +41,7 @@ class BansPlugin < Plugin end def make_badword_rx(txt) - return /\b#{txt}\b/i + return /\b(?:#{txt})\b/i end def initialize -- cgit v1.2.3