This ensures that checks are correct in both Ruby 1.8 and 1.9
#
def initialize(name, topic=nil, users=[], opts={})
raise ArgumentError, "Channel name cannot be empty" if name.to_s.empty?
#
def initialize(name, topic=nil, users=[], opts={})
raise ArgumentError, "Channel name cannot be empty" if name.to_s.empty?
- warn "Unknown channel prefix #{name[0].chr}" if name !~ /^[&#+!]/
+ warn "Unknown channel prefix #{name[0,1]}" if name !~ /^[&#+!]/
raise ArgumentError, "Invalid character in #{name.inspect}" if name =~ /[ \x07,]/
init_server_or_casemap(opts)
raise ArgumentError, "Invalid character in #{name.inspect}" if name =~ /[ \x07,]/
init_server_or_casemap(opts)
# The channel prefix
#
def prefix
# The channel prefix
#
def prefix
end
# A channel is local to a server if it has the '&' prefix
#
def local?
end
# A channel is local to a server if it has the '&' prefix
#
def local?
end
# A channel is modeless if it has the '+' prefix
#
def modeless?
end
# A channel is modeless if it has the '+' prefix
#
def modeless?
end
# A channel is safe if it has the '!' prefix
#
def safe?
end
# A channel is safe if it has the '!' prefix
#
def safe?
end
# A channel is normal if it has the '#' prefix
#
def normal?
end
# A channel is normal if it has the '#' prefix
#
def normal?
# Give a warning if the new Channel goes over some server limits.
#
# Give a warning if the new Channel goes over some server limits.
#