kameloso.plugins.admin.classifiers

Implementation of Admin plugin functionality regarding user classifiers. For internal use.

The IRCEvent-annotated handlers must be in the same module as the AdminPlugin, but these implementation functions can be offloaded here to limit module size a bit.

Members

Enums

AlterationResult
enum AlterationResult

Enum embodying the results of an account alteration.

NounForm
enum NounForm

Forms in which getNoun should produce conjugated nouns.

Functions

alterAccountClassifier
auto alterAccountClassifier(AdminPlugin plugin, Flag!"add" add, IRCUser.Class class_, string account, string channelName)

Adds or removes an account from the file of user classifier definitions, and reloads all plugins to make them read the updated lists.

delist
void delist(AdminPlugin plugin, string account, IRCUser.Class class_, string channelName, IRCEvent event)

Removes a nickname from either the whitelist, operator list, list of elevated users, staff, or the blacklist.

getNoun
auto getNoun(NounForm form, IRCUser.Class class_)

Returns the string of a Class noun conjugated to the passed form.

getNoun
auto getNoun(NounForm form, string classString)

Returns the string of a noun conjugated to the passed form.

listList
void listList(AdminPlugin plugin, string channelName, IRCUser.Class class_, IRCEvent event)

Sends a list of the current users in the whitelist, operator list, list of elevated users, staff, or the blacklist to the querying user or channel.

lookupEnlist
void lookupEnlist(AdminPlugin plugin, string specified, IRCUser.Class class_, string channelName, IRCEvent event)

Adds an account to either the whitelist, operator list, list of elevated users, staff, or the blacklist.

manageClassLists
void manageClassLists(AdminPlugin plugin, IRCEvent event, IRCUser.Class class_)

Common code for enlisting and delisting nicknames/accounts.

modifyHostmaskDefinition
void modifyHostmaskDefinition(AdminPlugin plugin, Flag!"add" add, string account, string mask, IRCEvent event)

Adds or removes hostmasks used to identify users on servers that don't employ services.

See Also

Meta