3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

ts6: call SQUIT hooks upon receving it...

This commit is contained in:
James Lu 2015-07-23 15:05:10 -07:00
parent 0977268070
commit 57c3a04cda

View File

@ -442,7 +442,9 @@ def handle_events(irc, data):
elif args[0] == 'SQUIT':
# What? Charybdis send this in a different format!
# <- SQUIT 00A :Remote host closed the connection
handle_squit(irc, args[1], 'SQUIT', [args[1]])
split_server = args[1]
res = handle_squit(irc, split_server, 'SQUIT', [split_server])
irc.callHooks([split_server, 'SQUIT', res])
elif args[0] == 'CAPAB':
# We only get a list of keywords here. Charybdis obviously assumes that
# we know what modes it supports (indeed, this is a standard list).