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

ts6: fix SQUIT handling

These come in a different syntax? Strange.
This commit is contained in:
James Lu 2015-07-23 13:45:55 -07:00
parent 0575de1fac
commit a77427ded9

View File

@ -439,6 +439,10 @@ def handle_events(irc, data):
# According to the TS6 protocol documentation, we should send SVINFO
# when we get our uplink's SERVER command.
irc.send('SVINFO 6 6 0 :%s' % int(time.time()))
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]])
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).