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
Public Class Methods
Source
# File lib/rbot/irc.rb, line 1206 def initialize(ch) super @list = UserList.new end
Calls superclass method
Irc::Channel::ModeTypeB::new
Public Instance Methods
Source
# File lib/rbot/irc.rb, line 1216 def reset(val) u = @channel.server.user(val) @list.delete(u) end
Source
# File lib/rbot/irc.rb, line 1211 def set(val) u = @channel.server.user(val) @list << u unless @list.include?(u) end