diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-10 10:51:58 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-10 10:51:58 +0000 |
commit | e59adede9b1540ac34a35540129e782d81299d5d (patch) | |
tree | db3c8e3d317fa003e2b8b8ade70de073d7c9059d /data/rbot/plugins | |
parent | 63b0b9682c3d3636e47c48750a42f768b8e7574b (diff) |
markov plugin: upgrade ignores to new IRC framework
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r-- | data/rbot/plugins/markov.rb | 3 |
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 |