In Files

Methods

Class/Module Index [+]

Quicksearch

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
# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.