diff options
| author | Pratyush Desai | 2024-12-16 09:14:04 +0100 |
|---|---|---|
| committer | Pratyush Desai | 2024-12-16 09:14:04 +0100 |
| commit | 103ae6d638d7eeb64783210f543009fa762b8a45 (patch) | |
| tree | 032dc3e8bf21e07223c11e218efaf0626a41f2de /config.py | |
| parent | ab36cc85e8907470cd834ca1f72f0b2e1d0a04cf (diff) | |
| parent | 2b0207d12bdd72d37069bcdbb65f474d0d52535f (diff) | |
| download | snoparser-103ae6d638d7eeb64783210f543009fa762b8a45.tar.gz snoparser-103ae6d638d7eeb64783210f543009fa762b8a45.tar.bz2 snoparser-103ae6d638d7eeb64783210f543009fa762b8a45.zip | |
Reviewed-on: https://git.com.de/LimnoriaPlugins/SnoParser/pulls/21
had missed it
Diffstat (limited to 'config.py')
| -rw-r--r-- | config.py | 39 |
1 files changed, 20 insertions, 19 deletions
@@ -104,9 +104,21 @@ conf.registerGlobalValue( # REDIS related settings below: ### conf.registerGroup(SnoParser, "redis") +conf.registerGroup(SnoParser.redis, "db") conf.registerGlobalValue( - SnoParser.redis, - "db1", + SnoParser.redis.db, + "ips", + registry.Integer( + 2, + """ + Redis: Database number for counting of IP ADDRESSES. + """, + private=True, + ), +) +conf.registerGlobalValue( + SnoParser.redis.db, + "nicks", registry.Integer( 1, """ @@ -116,21 +128,21 @@ conf.registerGlobalValue( ), ) conf.registerGlobalValue( - SnoParser.redis, - "db2", + SnoParser.redis.db, + "whois", registry.Integer( - 2, + 0, """ - Redis: Database number for counting of IP ADDRESSES. + Redis: Database number for WHOIS query caching. """, - private=True, ), ) + conf.registerGlobalValue( SnoParser.redis, "host", registry.String( - "127.0.0.1", + "localhost", """ Redis: IP address or hostname. """, @@ -218,16 +230,5 @@ conf.registerGlobalValue( private=True, ), ) -conf.registerGroup(SnoParser.whois, "redis") -conf.registerGlobalValue( - SnoParser.whois.redis, - "db", - registry.Integer( - 0, - """ - Redis: Database number for WHOIS query caching. - """, - ), -) # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: |
