class Circed::Channel
- Circed::Channel
- Reference
- Object
Defined in:
circed/channels/channel.crConstant Summary
-
VALID_CHAN_MODES =
['i', 'm', 'n', 'p', 's', 't', 'k', 'l', 'b', 'v', 'o']
Constructors
Instance Method Summary
- #add_ban(mask : String)
- #add_client(user : Client, key : String | Nil = nil)
- #add_mode(mode : String, param : String | Nil = nil)
- #bans : Array(String)
- #change_channel_ban(sender, mode_action, target_nick)
- #change_channel_key(sender, mode_action, new_key)
- #change_channel_limit(sender : Client, mode_action : Char, new_limit : Int32)
- #change_channel_mode(sender : Client, mode : String, target_nick : String | Nil = nil)
- #change_user_mode(sender : Client, target_nick : String, mode : String)
- #channel_empty?
- #channel_full? : Bool
- #channel_password
- #delete(nickname : String)
- #delete(user : Client)
- #delete(user : ChannelUser)
- #find_user(user) : ChannelUser | Nil
- #find_user_by_nickname(nickname : String) : ChannelUser | Nil
- #get_mode_param(mode : String) : String | Nil
- #handle_channel_mode(sender : Client, mode_action : Char, flag : Char)
- #has_mode?(mode : String) : Bool
- #invite_only?
- #invited?(user : Client)
- #invited_users : Array(Client)
- #irc_name
- #is_banned?(user : Client) : Bool
-
#mode_string
Returns the modes as a string like "+nt" and if there are any params,
- #modes : Hash(String, String | Nil)
- #name : String
- #private?
- #remove_ban(mask : String)
- #remove_client(user : Client)
- #remove_mode(mode : String)
- #secret?
- #send_message(user : Client, message : String)
- #send_raw(user : Client, command : String, nickname : String, user_name : String, host : String, params : Array(String))
- #topic : String
- #topic=(topic : String)
- #topic_set_at : Time | Nil
- #topic_set_at=(topic_set_at : Time | Nil)
- #topic_setter : ChannelUser | Nil
- #topic_setter=(topic_setter : ChannelUser | Nil)
- #user_in_channel?(user)
- #user_limit : Int32
- #user_limit=(user_limit : Int32)
- #users : Array(ChannelUser)