Server - shabble/irssi-docs GitHub Wiki

Irssi::Server

home | Irssi

ATTRIBUTES

Server->{}

type - "SERVER" text
chat_type - String ID of chat protocol, for example "IRC"

(..contains all the same data as Connect above..)

connect_time - Time when connect() to server finished
real_connect_time - Time when server sent "connected" message

tag - Unique server tag
nick - Current nick

connected - Is connection finished? 1|0
connection_lost - Did we lose the connection (1) or was
                  the connection just /DISCONNECTed (0)

rawlog - Rawlog object for the server

version - Server version
last_invite - Last channel we were invited to
server_operator - Are we server operator (IRC op) 1|0
usermode_away - Are we marked as away? 1|0
away_reason - Away reason message
banned - Were we banned from this server? 1|0
lag - Current lag to server in milliseconds

METHODS

channels

returns the list of currently joined channels on server

channels_join $channels, $automatic

Join to specified channels in server. $channels may also contain keys for channels just like with the /JOIN command. $automatic specifies if this channel was joined "automatically" or if it was joined because join was requested by user. If channel join is "automatic", irssi doesn't jump to the window where the channel was joined.

queries

Returns a list of open queries on this server

print $channel, $str, $level
command $string

Run the specified command on this server in the context of this server.

Connect::connect

TODO: What is Connect:: package?

Connect to server. returns Irssi::Server object.

disconnect

Disconnect from server.

isnickflag $flag

Returns 1 if flag is a nick mode flag (@, + or % in IRC)

ischannel $data

Returns 1 if start of `data' seems to mean channel.

get_nick_flags

Returns nick flag characters in order: op, voice, halfop ("@+%" in IRC).

send_message $target, $msg, $target_type

Sends a message to nick/channel. Values for $target_type are

0 = channel
1 = nick
netsplit_find $nick, $address

Check if nick!address is on the other side of netsplit. Netsplit records are automatically removed after 30 minutes (current default).

returns Irssi::Irc::Netsplit

netsplit_find_channel $nick, $address, $channel

Find nick record for nick!address in channel $channel. returns Irssi::Nick

dcc_ctcp_message $target, $notice, $msg
channel_find $channel

Find channel from specified server. Returns Irssi::Channel

ignore_check $nick, $host, $channel, $text, $level

Return 1 if ignoring matched.

nicks_get_same $nick

Returns all nick objects in all channels in server.

The returned list is in format:

Channel, Nick, Channel, ...

TODO

Irssi::Server::window_find_closest(Irssi::Server $server, string $name, int $level)
Irssi::Server::window_find_item(Irssi::Server $server, string $name)
Irssi::Server::window_find_level(Irssi::Server $server, int $level)
Irssi::Server::window_item_find(Irssi::Server $server, string $name)



Irssi::Server::channel_find
Irssi::Server::channels
Irssi::Server::channels_join
Irssi::Server::command
Irssi::Server::disconnect
Irssi::Server::format_create_dest
Irssi::Server::get_nick_flags
Irssi::Server::ignore_check
Irssi::Server::ischannel
Irssi::Server::isnickflag
Irssi::Server::mask_match
Irssi::Server::mask_match_address
Irssi::Server::masks_match
Irssi::Server::nicks_get_same
Irssi::Server::parse_special
Irssi::Server::print
Irssi::Server::printformat
Irssi::Server::queries
Irssi::Server::query_find
Irssi::Server::ref
Irssi::Server::send_message
Irssi::Server::unref
Irssi::Server::window_find_closest
Irssi::Server::window_find_item
Irssi::Server::window_find_level
Irssi::Server::window_item_find
⚠️ **GitHub.com Fallback** ⚠️