# }
# }
# end
-#
+#
module Irc
class Bot
#
def initialize(cmd)
cmdpath = sanitize_command_path(cmd).split('::')
- seq = cmdpath.inject(["*"]) { |list, cmd|
- list << (list.length > 1 ? list.last + "::" : "") + cmd
+ seq = cmdpath.inject(["*"]) { |list, cc|
+ list << (list.length > 1 ? list.last + "::" : "") + cc
}
@path = seq.map { |k|
k.to_sym
# Adds a Netmask
#
def add_netmask(mask)
- m = mask.to_irc_netmask(:server => nil,:force => true)
+ m = mask.to_irc_netmask
@netmasks << m
if self.autologin?
Auth.manager.maskdb.add(self, m)