Circed::Utils::IrcUtils
Consolidated IRC utilities to eliminate duplicate validation and helper code
Class methods
each_list_param(param : String, & : String -> ) : Nil
Sourceformat_hostmask(nickname : String, username : String, hostname : String) : String
Sourcemode_set(modes : String) : Set(Char)
Sourcemode_string(modes : Set(Char)) : String
Sourcesend_bad_channel_key_error(sender : Client, channel_name : String)
Sourcesend_banned_from_channel_error(sender : Client, channel_name : String)
Sourcesend_cannot_send_to_channel_error(sender : Client, channel_name : String)
Sourcesend_channel_error(sender : Client, channel_name : String)
Sourcesend_channel_full_error(sender : Client, channel_name : String)
Sourcesend_invite_only_error(sender : Client, channel_name : String)
Sourcesend_nickname_in_use_error(sender : Client, nickname : String)
Sourcesend_no_such_channel_error(sender : Client, channel_name : String)
Sourcesend_not_on_channel_error(sender : Client, channel_name : String)
Sourcesend_not_operator_error(sender : Client, channel_name : String)
Sourcesend_not_registered_error(sender : Client)
Sourcesend_user_on_channel_error(sender : Client, channel_name : String)
Sourcesend_users_dont_match_error(sender : Client)
Sourcesplit_list_param(param : String) : Array(String)
Sourcesplit_list_param(param : String | Nil) : Array(String)
Sourcetrailing_param(params : Array(String), start_index : Int32, default = "") : String
Sourceuser_has_channel_mode?(channel : Domain::Channel, nickname : String, mode : Char) : Bool
Check if a user has a specific mode in a channel
user_is_operator?(channel : Domain::Channel, nickname : String) : Bool
Check if user is operator in channel
validate_channel_name(sender : Client, channel_name : String) : Bool
Validate channel name and send error if invalid