modifyAutomode

Modifies an automode entry by adding a new one or removing a (potentially) existing one.

version(WithAutomodePlugin)
private
void
modifyAutomode
(,
const Flag!"add" add
,
const string nickname
,
const string channelName
,
const string mode = string.init
)

Parameters

plugin AutomodePlugin

The current AutomodePlugin.

add Flag!"add"

Whether to add or to remove the automode.

nickname string

The nickname of the user to add the automode for.

channelName string

The channel the automode should play out in.

mode string

The mode string, when adding a new automode.