Skip to content
Tom Feist edited this page Jan 11, 2011 · 37 revisions

Irssi::Channel

home | Irssi
[[ATTRIBUTES|Channel#ATTRIBUTES]]
[[METHODS|Channel#METHODS]]
[[channels_join(channels, automatic)|Channel#channels_join(channels,_automatic)]]
[[destroy|Channel#destroy]]
[[bans|Channel#bans]]
[[ban_get_mask $nick|Channel#ban_get_mask_$nick]]
[[banlist_add $ban, $nick, $time|Channel#banlist_add_$ban,_$nick,_$time]]
[[banlist_remove $ban|Channel#banlist_remove_$ban]]
[[nick_insert $nick, $op, $voice, $send_massjoin|Channel#nick_insert_$nick,_$op,_$voice,_$send_massjoin]]
[[nick_remove $nick|Channel#nick_remove_$nick]]
[[nick_find $nick|Channel#nick_find_$nick]]
[[nick_find_mask $mask|Channel#nick_find_mask_$mask]]
[[nicks|Channel#nicks]]

ATTRIBUTES

Channel->{}

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

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

topic - Channel topic
topic_by - Nick who set the topic
topic_time - Timestamp when the topic was set

no_modes - Channel is modeless
mode - Channel mode
limit - Max. users in channel (+l mode)
key - Channel key (password)

chanop - You are channel operator
names_got - /NAMES list has been received
wholist - /WHO list has been received
synced - Channel is fully synchronized

joined - JOIN event for this channel has been received
left - You just left the channel (for "channel destroyed" event)
kicked - You was just kicked out of the channel (for
         "channel destroyed" event)

METHODS

channels_join(channels, automatic)

Join to channels in server. `channels' may also contain keys for channels just like with /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.

destroy

Destroy channel.

bans

Return a list of bans in channel.

ban_get_mask $nick

Get ban mask for `nick'.

banlist_add $ban, $nick, $time

Add a new ban to channel.

banlist_remove $ban

Remove a ban from channel.

nick_insert $nick, $op, $voice, $send_massjoin

Add nick to nicklist. Returns a Irssi::Nick.

nick_remove $nick

Remove nick from nicklist.

nick_find $nick

Find nick from nicklist. Returns Irssi::Nick

nick_find_mask $mask

Find nick mask from nicklist, wildcards allowed. Returns Irssi::Nick

nicks

Return a list of all nicks in channel.

Clone this wiki locally