Skip to content

Commit 8e15f92

Browse files
committed
Fix call to init_chan_data() in clearusers
1 parent c8a1781 commit 8e15f92

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

plugins/chan_track.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,9 @@ def clearusers(bot):
365365
"""
366366
:type bot: cloudbot.bot.CloudBot
367367
"""
368-
init_chan_data(bot, True)
368+
for conn in bot.connections.values():
369+
init_chan_data(conn, True)
370+
369371
gc.collect()
370372
return "Data cleared."
371373

0 commit comments

Comments
 (0)