From 1a8637103406b0c4b6c49939dbf22474d18ed888 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 10 Aug 2006 22:04:58 +0000 Subject: Adapt AutoOp plugin to the new IRC framework --- data/rbot/plugins/autoop.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'data/rbot') diff --git a/data/rbot/plugins/autoop.rb b/data/rbot/plugins/autoop.rb index cc1e11a9..5f416e41 100644 --- a/data/rbot/plugins/autoop.rb +++ b/data/rbot/plugins/autoop.rb @@ -6,9 +6,9 @@ class AutoOP < Plugin def join(m) return if m.address? @registry.each { |mask,channels| - if(Irc.netmaskmatch(mask, m.source) && - (channels.empty? || channels.include?(m.channel))) - @bot.mode(m.channel, "+o", m.sourcenick) + if m.source.matches?(mask.to_irc_netmask(:server => m.server)) && + (channels.empty? || channels.include?(m.channel.to_s)) + @bot.mode(m.channel, "+o", m.source.nick) return end } -- cgit v1.2.3