/tg/ Station 13 - Modules - Types — Var Details - Proc Details

department_ooc_channel

A single departmental OOC channel.

[GLOB.department_ooc_channels] defines the channels used by the chat verb and admin toggle.

Vars

allowedWhether non-admins may send messages on this channel.
anon_prefixPrefix for anonymous names, e.g. "Deputy" in "Deputy Foxtrot 12".
colorDefault chat colour; non-anonymous messages may use the listener's OOC colour.
department_flagsDepartments whose members may speak and listen here. NONE for a channel gated only on antag status.
idShort name used as the chat prefix and in the channel picker, e.g. "SEC-OOC".
is_antag_channelIf TRUE, holding any antagonist datum grants access on top of department_flags.
key_to_anon_nameBYOND key -> anonymous name, stable for the round within this channel.

Procs

can_useAllows admins to use any channel; other clients must be members.
get_listenersReturns listening clients mapped to their DEPT_OOC_LISTEN_* mode.
is_memberChecks channel membership by department or antagonist datum, without admin privileges.

Var Details

allowed

Whether non-admins may send messages on this channel.

anon_prefix

Prefix for anonymous names, e.g. "Deputy" in "Deputy Foxtrot 12".

color

Default chat colour; non-anonymous messages may use the listener's OOC colour.

department_flags

Departments whose members may speak and listen here. NONE for a channel gated only on antag status.

id

Short name used as the chat prefix and in the channel picker, e.g. "SEC-OOC".

is_antag_channel

If TRUE, holding any antagonist datum grants access on top of department_flags.

key_to_anon_name

BYOND key -> anonymous name, stable for the round within this channel.

Proc Details

can_use

Allows admins to use any channel; other clients must be members.

get_listeners

Returns listening clients mapped to their DEPT_OOC_LISTEN_* mode.

Active admins with OOC enabled receive messages as staff. Members always receive messages, even with OOC hidden, so staff can reach them. This also applies to admins who are members but have OOC hidden.

is_member

Checks channel membership by department or antagonist datum, without admin privileges.

Shared by sending and receiving. Antagonist datums include antag silicons that mob/is_antag() excludes.