class Circed::Channel

Defined in:

circed/channels/channel.cr

Constant Summary

VALID_CHAN_MODES = ['i', 'm', 'n', 'p', 's', 't', 'k', 'l', 'b', 'v', 'o']

Constructors

Instance Method Summary

Constructor Detail

def self.new(name) #

[View source]

Instance Method Detail

def add_ban(mask : String) #

[View source]
def add_client(user : Client, key : String | Nil = nil) #

[View source]
def add_mode(mode : String, param : String | Nil = nil) #

[View source]
def bans : Array(String) #

[View source]
def change_channel_ban(sender, mode_action, target_nick) #

[View source]
def change_channel_key(sender, mode_action, new_key) #

[View source]
def change_channel_limit(sender : Client, mode_action : Char, new_limit : Int32) #

[View source]
def change_channel_mode(sender : Client, mode : String, target_nick : String | Nil = nil) #

[View source]
def change_user_mode(sender : Client, target_nick : String, mode : String) #

[View source]
def channel_empty? #

[View source]
def channel_full? : Bool #

[View source]
def channel_password #

[View source]
def delete(nickname : String) #

[View source]
def delete(user : Client) #

[View source]
def delete(user : ChannelUser) #

[View source]
def find_user(user) : ChannelUser | Nil #

[View source]
def find_user_by_nickname(nickname : String) : ChannelUser | Nil #

[View source]
def get_mode_param(mode : String) : String | Nil #

[View source]
def handle_channel_mode(sender : Client, mode_action : Char, flag : Char) #

[View source]
def has_mode?(mode : String) : Bool #

[View source]
def invite_only? #

[View source]
def invited?(user : Client) #

[View source]
def invited_users : Array(Client) #

[View source]
def irc_name #

[View source]
def is_banned?(user : Client) : Bool #

[View source]
def mode_string #

Returns the modes as a string like "+nt" and if there are any params,


[View source]
def modes : Hash(String, String | Nil) #

[View source]
def name : String #

[View source]
def private? #

[View source]
def remove_ban(mask : String) #

[View source]
def remove_client(user : Client) #

[View source]
def remove_mode(mode : String) #

[View source]
def secret? #

[View source]
def send_message(user : Client, message : String) #

[View source]
def send_raw(user : Client, command : String, nickname : String, user_name : String, host : String, params : Array(String)) #

[View source]
def topic : String #

[View source]
def topic=(topic : String) #

[View source]
def topic_set_at : Time | Nil #

[View source]
def topic_set_at=(topic_set_at : Time | Nil) #

[View source]
def topic_setter : ChannelUser | Nil #

[View source]
def topic_setter=(topic_setter : ChannelUser | Nil) #

[View source]
def user_in_channel?(user) #

[View source]
def user_limit : Int32 #

[View source]
def user_limit=(user_limit : Int32) #

[View source]
def users : Array(ChannelUser) #

[View source]