Phantasmal MUD Lib for DGD

Phantasmal Site > Phantasmal API > API Listing > get_channel_by_name

API Function: get_channel_by_name

Summary:
get a channel index by name

Defined In LPC Object:
/usr/common/sys/channeld.c

Prototype:
int get_channel_by_name(string name, object user)

Can Be Called By:
System, Common, Game

Description:

Get channel number for name. The name is currently one of OOC, Log and Error.

Return Value:

An integer value for the channel number, or -1 if the channel cannot be found.

Errors:
Normally none.

See Also:
channel_list , string_to_channel , subscribe_user