@param [String] mask The mask @param [User] by The user who created the ban @param [Time] at The time at which the ban was created
# File lib/cinch/ban.rb, line 19 def initialize(mask, by, at) @by, @created_at = by, at if mask =~ /^\$/ @extended = true @mask = mask else @extended = false @mask = Mask.new(mask) end end
@return [Boolean] true if the ban matches `user` @raise [Exceptions::UnsupportedFeature] Cinch does not support
Freenode's extended bans
# File lib/cinch/ban.rb, line 33 def match(user) raise UnsupportedFeature, "extended bans (freenode) are not supported yet" if @extended @mask =~ user end
Generated with the Darkfish Rdoc Generator 2.