summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-10 10:51:58 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-10 10:51:58 +0000
commite59adede9b1540ac34a35540129e782d81299d5d (patch)
treedb3c8e3d317fa003e2b8b8ade70de073d7c9059d
parent63b0b9682c3d3636e47c48750a42f768b8e7574b (diff)
markov plugin: upgrade ignores to new IRC framework
-rw-r--r--data/rbot/plugins/markov.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/rbot/plugins/markov.rb b/data/rbot/plugins/markov.rb
index 7408a43e..c87dc99d 100644
--- a/data/rbot/plugins/markov.rb
+++ b/data/rbot/plugins/markov.rb
@@ -59,8 +59,9 @@ class MarkovPlugin < Plugin
end
def ignore?(user=nil)
+ return false unless user
@registry['ignore_users'].each do |mask|
- return true if Irc.netmaskmatch mask, user
+ return true if user.matches?(mask)
end
return false
end