Update config.py

made modeD a channel registryValue for more versatility
This commit is contained in:
Nicolas Coevoet 2021-06-30 17:10:12 +02:00 committed by GitHub
parent 2f7b3c548a
commit b98455e798
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,13 +65,12 @@ conf.registerGlobalValue(ChanTracker, 'announceNagInterval',
conf.registerGlobalValue(ChanTracker, 'resolveIp',
registry.Boolean(True, """trying to resolve host's ip with socket, could add latency"""))
conf.registerGlobalValue(ChanTracker, 'modeD',
## per-channel settings
conf.registerChannelValue(ChanTracker, 'modeD',
registry.String("", """special mode if you want to use some specific stuff;
$hostmask (*!*@*), $klinemask (*@*), $host, $channel, $reason, $nick and $duration are available"""))
## per-channel settings
conf.registerChannelValue(ChanTracker, 'useAccountBanIfPossible',
registry.Boolean(False, """bot will use account bans when user is identified, only works for b,q,e,I and m (chantracker.m)"""))