summaryrefslogtreecommitdiffstats
path: root/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'config.py')
-rw-r--r--config.py39
1 files changed, 20 insertions, 19 deletions
diff --git a/config.py b/config.py
index 14654c5..f58e176 100644
--- a/config.py
+++ b/config.py
@@ -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: