]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commit
bans: put badwords in message() too
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 9 Feb 2009 23:31:57 +0000 (00:31 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 9 Feb 2009 23:31:57 +0000 (00:31 +0100)
commite2dc08da6b19d0e4fdb2f0a71b0c89e6477c5605
treed82bf44e78ebff759b9c2bbccdd67ee1de5b8a2e
parentad193513e4c1ca759fe461496eb1032fe34106d8
bans: put badwords in message() too

Move the whitelist and badwords check in the message() method instead of
triggering on listen(). This is more correct and more efficient, and it
ensures that the whitelist protects mass-highlighters too.
data/rbot/plugins/bans.rb