diff options
Diffstat (limited to 'config.py')
| -rw-r--r-- | config.py | 66 |
1 files changed, 47 insertions, 19 deletions
@@ -61,62 +61,90 @@ conf.registerGlobalValue(SnoParser, 'AutoVhost', conf.registerGlobalValue(SnoParser, 'preventHighlight', registry.Boolean(True, ("""Toggles in channel highlights with ZWSP"""))) +conf.registerGlobalValue(SnoParser, 'debug', + registry.Boolean('false', + """ + SnoParser: Verbose output. Note: there is a seperate debug option for the `whois` client. + """ + , private=True +)) + ### -## WHOIS related settings below: +# REDIS related settings below: ### -conf.registerGroup(SnoParser, 'whois') -conf.registerGlobalValue(SnoParser.whois, 'debug', - registry.Boolean('false', +conf.registerGroup(SnoParser, 'redis') +conf.registerGlobalValue(SnoParser.redis, 'db1', + registry.Integer('1', """ - SnoParser: True: Very verbose console output. False: Mostly silent operation. + Redis: Database number for counting of NICKNAMES. """ , private=True )) -conf.registerGlobalValue(SnoParser.whois, 'sample', - registry.String('', +conf.registerGlobalValue(SnoParser.redis, 'db2', + registry.Integer('2', """ - SnoParser: This allows to set a testing IP address, if the plugin shall be evaluated on i.e. a local network. This will override all IP addresses from SNOTICES! + Redis: Database number for counting of IP ADDRESSES. """ , private=True )) -conf.registerGroup(SnoParser.whois, 'redis') -conf.registerGlobalValue(SnoParser.whois.redis, 'host', +conf.registerGlobalValue(SnoParser.redis, 'host', registry.String('127.0.0.1', """ Redis: IP address or hostname. """ , private=True )) -conf.registerGlobalValue(SnoParser.whois.redis, 'port', +conf.registerGlobalValue(SnoParser.redis, 'port', registry.Integer('6379', """ Redis: Port. """ , private=True )) -conf.registerGlobalValue(SnoParser.whois.redis, 'username', +conf.registerGlobalValue(SnoParser.redis, 'username', registry.String('', """ Redis: Username. This is optional and has not been tested. It is recommended to perform initial tests on a local instance with no username and password. """ , private=True )) -conf.registerGlobalValue(SnoParser.whois.redis, 'password', +conf.registerGlobalValue(SnoParser.redis, 'password', registry.String('', """ Redis: Password. This is optional and has not been tested. It is recommended to perform initial tests on a local instance with no username and password. """ )) -conf.registerGlobalValue(SnoParser.whois.redis, 'db', - registry.Integer('0', +conf.registerGlobalValue(SnoParser.redis, 'timeout', + registry.Integer('5', """ - Redis: Database number. It is recommended to use a dedicated, isolated, Redis instance for SnoParser instead of using an existing one with a different database. + Redis: Socket Timeout. The developer does not know what to recommend here, but `5` seems to yield good results. """ )) -conf.registerGlobalValue(SnoParser.whois.redis, 'timeout', - registry.Integer('5', + + +### +## WHOIS related settings below: +### +conf.registerGroup(SnoParser, 'whois') +conf.registerGlobalValue(SnoParser.whois, 'debug', + registry.Boolean('false', """ - Redis: Socket Timeout. The developer does not know what to recommend here, but `5` seems to yield good results. + SnoParser: True: Very verbose console output. False: Mostly silent operation. + """ + , private=True +)) +conf.registerGlobalValue(SnoParser.whois, 'sample', + registry.String('', + """ + SnoParser: This allows to set a testing IP address, if the plugin shall be evaluated on i.e. a local network. This will override all IP addresses from SNOTICES! + """ + , private=True +)) +conf.registerGroup(SnoParser.whois, 'redis') +conf.registerGlobalValue(SnoParser.whois.redis, 'db', + registry.Integer('0', + """ + Redis: Database number for WHOIS query caching. """ )) |
