From d6952f036111bb13e49f40fd275f4dee6d1bc6b3 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 31 Mar 2018 00:08:56 -0700 Subject: [PATCH] handlers: fix names of state cleanup function Where did "stats cleanup" even come from?! --- coremods/handlers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/coremods/handlers.py b/coremods/handlers.py index ac3d3a2..8e7b7f1 100644 --- a/coremods/handlers.py +++ b/coremods/handlers.py @@ -181,11 +181,11 @@ def _state_cleanup_core(irc, source, channel): irc.name, source, irc.users[source].nick) irc._remove_client(source) -def stats_cleanup_part(irc, source, command, args): +def _state_cleanup_part(irc, source, command, args): for channel in args['channels']: _state_cleanup_core(irc, source, channel) -utils.add_hook(stats_cleanup_part, 'PART', priority=-100) +utils.add_hook(_state_cleanup_part, 'PART', priority=-100) -def stats_cleanup_kick(irc, source, command, args): +def _state_cleanup_kick(irc, source, command, args): _state_cleanup_core(irc, args['target'], args['channel']) -utils.add_hook(stats_cleanup_kick, 'KICK', priority=-100) +utils.add_hook(_state_cleanup_kick, 'KICK', priority=-100)