class Irc::Channel::ModeTypeA
Channel
modes of type A manipulate lists
Example: b (banlist)
Attributes
Public Class Methods
Source
# File lib/rbot/irc.rb, line 1154 def initialize(ch) super @list = NetmaskList.new end
Calls superclass method
Irc::Channel::Mode::new
Public Instance Methods
Source
# File lib/rbot/irc.rb, line 1164 def reset(val) nm = @channel.server.new_netmask(val) @list.delete(nm) end
Source
# File lib/rbot/irc.rb, line 1159 def set(val) nm = @channel.server.new_netmask(val) @list << nm unless @list.include?(nm) end