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 bool add
,,
const string account
,
const string channelName
)

Parameters

plugin AdminPlugin

The current AdminPlugin.

add bool

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 (add: true) and the account was already in the specified list. AlterationResult.noSuchAccount if delisting (add: false) and no such account could be found in the specified list. AlterationResult.noSuchChannel if delisting (add: false) and no such channel could be found in the specified list. AlterationResult.success if enlisting or delisting succeeded.