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