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 1206definitialize(ch)
super@list = UserList.newend
Public Instance Methods
reset(val)click to toggle source
# File lib/rbot/irc.rb, line 1216defreset(val)
u = @channel.server.user(val)
@list.delete(u)
end
set(val)click to toggle source
# File lib/rbot/irc.rb, line 1211defset(val)
u = @channel.server.user(val)
@list<<uunless@list.include?(u)
end