Add config option for WHO loop interval
This commit is contained in:
parent
23617cae53
commit
9e3ae677e1
|
@ -25,12 +25,15 @@
|
|||
"Tweaks": {
|
||||
"ZNC": {
|
||||
"Prefix": "*"
|
||||
},
|
||||
"Delays": {
|
||||
"WhoLoop": 60
|
||||
}
|
||||
},
|
||||
"Default": {
|
||||
"host": null,
|
||||
"port": null,
|
||||
"protocol": null,
|
||||
"protocol": "ssl",
|
||||
"bind": null,
|
||||
"timeout": 30,
|
||||
"maxdelay": 360,
|
||||
|
|
|
@ -247,7 +247,7 @@ class IRCBot(IRCClient):
|
|||
main.saveConf("masterbuf")
|
||||
lc = LoopingCall(self.getWho, channel)
|
||||
self._getWho[channel] = lc
|
||||
lc.start(60)
|
||||
lc.start(main.config["Tweaks"]["Delays"]["WhoLoop"])
|
||||
|
||||
def left(self, channel, message):
|
||||
if channel in self.channels:
|
||||
|
|
Loading…
Reference in New Issue