summaryrefslogtreecommitdiffstats
path: root/config.py
diff options
context:
space:
mode:
authorGeorg2021-08-26 19:18:14 +0200
committerGeorg2021-08-26 19:18:14 +0200
commit78161bda7f95cfd72b1386ab7bb93c4aad7b741c (patch)
tree488d0045734703c36b59b6d45f36604e5dd6f12e /config.py
parent708e4b70755ecb71e63602077f2424965f277049 (diff)
downloadsnoparser-78161bda7f95cfd72b1386ab7bb93c4aad7b741c.tar.gz
snoparser-78161bda7f95cfd72b1386ab7bb93c4aad7b741c.tar.bz2
snoparser-78161bda7f95cfd72b1386ab7bb93c4aad7b741c.zip
Added nickname and IP address counting
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'config.py')
-rw-r--r--config.py66
1 files changed, 47 insertions, 19 deletions
diff --git a/config.py b/config.py
index 9617979..983cb6d 100644
--- a/config.py
+++ b/config.py
@@ -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.
"""
))