class

Circed::Domain::Channel

Inherits Reference / Object

Domain model for IRC channels

Constants

SIMPLE_MODES = {'i', 'm', 'n', 't', 's', 'p'}
USER_MODES = {'o', 'h', 'v'}

Constructors

new(name : String)
Source

Class methods

member_prefix(modes : Set(Char)) : Char | Nil
Source

Instance methods

add_ban(ban_mask : String) : Nil

Ban management

Source
add_invite(nickname : String) : Nil

Invite management

Source
add_member(nickname : String, user_modes = Set(Char).new) : Nil
Source
add_mode(mode : Char) : Nil
Source
apply_modes(mode_string : String, params : Array(String), parameter_index : Int32 = 0) : NamedTuple(modes: String, parameter_count: Int32)
Source
ban_list
Source
ban_list=(ban_list : Set(String))
Source
banned?(hostmask : String) : Bool
Source
banned?(context : BanMatchContext) : Bool
Source
created_at
Source
created_at=(created_at : Time)
Source
empty?
Source
full?
Source
has_member?(nickname : String) : Bool
Source
has_mode?(mode : Char) : Bool
Source
has_password?
Source
has_user_limit?
Source
invite_list
Source
invite_list=(invite_list : Set(String))
Source
invite_only?
Source
invited?(nickname : String) : Bool
Source
member_count
Source
member_modes?(nickname : String) : Set(Char) | Nil
Source
members
Source
members=(members : Hash(String, Set(Char)))
Source
modes
Source
modes=(modes : Set(Char))
Source
name
Source
name=(name : String)
Source
password
Source
password=(new_password : String | Nil)

Password management

Source
password_matches?(provided_password : String | Nil) : Bool
Source
private?
Source
remove_ban(ban_mask : String) : Bool
Source
remove_invite(nickname : String) : Bool
Source
remove_member(nickname : String) : Bool
Source
remove_mode(mode : Char) : Nil
Source
rename_member(old_nickname : String, new_nickname : String) : Bool
Source
secret?
Source
topic
Source
topic=(topic : String | Nil)
Source
topic_set_at
Source
topic_set_at=(topic_set_at : Time | Nil)
Source
topic_set_by
Source
topic_set_by=(topic_set_by : String | Nil)
Source
user_limit
Source
user_limit=(limit : Int32 | Nil)

User limit management

Source
visible_to?(nickname : String | Nil) : Bool
Source