summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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