struct FastIRC::Prefix
- FastIRC::Prefix
- Struct
- Value
- Object
Overview
Prefix of the IRC message (nick!user@host).
IRC Prefixes can either consist of a nickname with optional user and host,
or a server hostname. To handle both these cases, #source
is set to either
the nick or server name depending on which type of prefix is received. This
means #source
is always present.
Defined in:
fast_irc/message.crConstructors
Instance Method Summary
- #host : String | Nil
- #inspect(io)
-
#server?
Returns true if the source of this prefix an IRC server.
- #source : String
-
#to_s(io)
Converts the prefix back into a raw IRC prefix (e.g.
- #user : String | Nil
-
#user?
Returns true if the source of this prefix an IRC server.
Constructor Detail
Instance Method Detail
def server?
#
Returns true if the source of this prefix an IRC server.
The check used for the is if the source contains a '.' character.
def to_s(io)
#
Converts the prefix back into a raw IRC prefix (e.g. nick!user@host). Does not include leading ':'.