From e59adede9b1540ac34a35540129e782d81299d5d Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 10 Feb 2007 10:51:58 +0000 Subject: markov plugin: upgrade ignores to new IRC framework --- data/rbot/plugins/markov.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3