3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 13:09:23 +01:00

handlers: fix names of state cleanup function

Where did "stats cleanup" even come from?!
This commit is contained in:
James Lu 2018-03-31 00:08:56 -07:00
parent 57d7a70933
commit d6952f0361

View File

@ -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)