3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 11:39:25 +01:00

ts6: add missing handler for SID

This commit is contained in:
James Lu 2015-07-23 11:17:57 -07:00
parent 58a8d7134c
commit 42593ae431

View File

@ -387,7 +387,6 @@ def handle_uid(irc, numeric, command, args):
"handled by us at all!") "handled by us at all!")
def handle_server(irc, numeric, command, args): def handle_server(irc, numeric, command, args):
# SERVER is sent by our uplink or any other server to introduce others.
# parameters: server name, hopcount, sid, server description # parameters: server name, hopcount, sid, server description
servername = args[0].lower() servername = args[0].lower()
try: try:
@ -401,6 +400,8 @@ def handle_server(irc, numeric, command, args):
irc.servers[sid] = IrcServer(numeric, servername) irc.servers[sid] = IrcServer(numeric, servername)
return {'name': servername, 'sid': sid, 'text': sdesc} return {'name': servername, 'sid': sid, 'text': sdesc}
handle_sid = handle_server
def handle_tmode(irc, numeric, command, args): def handle_tmode(irc, numeric, command, args):
# <- :42XAAAAAB TMODE 1437450768 #endlessvoid -c+lkC 3 agte4 # <- :42XAAAAAB TMODE 1437450768 #endlessvoid -c+lkC 3 agte4
channel = args[1].lower() channel = args[1].lower()