+2006-08-11 Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
+
+ * AutoOp plugin: adapted to the new IRC framework.
+
2006-08-10 Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
* Fix a bug in new IRC Framework: the list of channels a quitting user was
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
}