class 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
Calls superclass method
Irc::Channel::ModeTypeB::new
# File lib/rbot/irc.rb, line 1213 def initialize(ch) super @list = UserList.new end
Public Instance Methods
reset(val)
click to toggle source
# File lib/rbot/irc.rb, line 1223 def reset(val) u = @channel.server.user(val) @list.delete(u) end
set(val)
click to toggle source
# File lib/rbot/irc.rb, line 1218 def set(val) u = @channel.server.user(val) @list << u unless @list.include?(u) end