Phantasmal MUD Lib for DGD

Phantasmal Site > Phantasmal API > API Listing > sub_data_level

API Function: sub_data_level

Summary:
return the extra subscription data for a channel subscription

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

Prototype:
int sub_data_level(object user, int channel)

Can Be Called By:
System, Common, Game

Description:

This is used only for specific channels that specify extra subscription data. This extra data is currently only used for errors and log messages as a way to subscribe to only certain severities of either or both.

Return Value:

An integer, the extra subscription data. If -1 is returned, the request could not be completed.

Errors:
Normally none

See Also:
get_channel_by_name , string_to_channel , subscribe_user