alterAccountClassifier

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

version(WithAdminPlugin)
package
alterAccountClassifier
(,
const Flag!"add" add
,
const IRCUser.Class class_
,
const string account
,
const string channelName
)

Parameters

plugin AdminPlugin

The current AdminPlugin.

add Flag!"add"

Whether to add to or remove from lists.

class_ IRCUser.Class

User class.

account string

Services account name to add or remove.

channelName string

Channel the account-class applies to.

Return Value

Type: auto

AlterationResult.alreadyInList if enlisting (Yes.add) and the account was already in the specified list. AlterationResult.noSuchAccount if delisting (No.add) and no such account could be found in the specified list. AlterationResult.noSuchChannel if delisting (No.add) and no such channel could be found in the specified list. AlterationResult.success if enlisting or delisting succeeded.

Meta