diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-17 10:28:42 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-17 10:28:42 +0000 |
commit | 4afae844a82a7a88a5bfc1a02e4a269190e87dbc (patch) | |
tree | 9994174803fa72e044267ab7d72fb910baa88528 /data | |
parent | 841719041ca33782a983a9f2e12bc586c4a6b237 (diff) |
bans plugin: fix badword regular expression creation
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/bans.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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
|