In Files

Methods

Class/Module Index [+]

Quicksearch

Irc::Channel::UserMode

Channel modes that change the User prefixes are like Channel modes of type B, except that they manipulate lists of Users, so they are somewhat similar to channel modes of type A

Attributes

list[R]
users[R]

Public Class Methods

new(ch) click to toggle source
# File lib/rbot/irc.rb, line 1206
def initialize(ch)
  super
  @list = UserList.new
end

Public Instance Methods

reset(val) click to toggle source
# File lib/rbot/irc.rb, line 1216
def reset(val)
  u = @channel.server.user(val)
  @list.delete(u)
end
set(val) click to toggle source
# File lib/rbot/irc.rb, line 1211
def set(val)
  u = @channel.server.user(val)
  @list << u unless @list.include?(u)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.