diff --git a/protocols/inspircd.py b/protocols/inspircd.py index 0bb6490..2cb2ab8 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -447,6 +447,11 @@ def spawnServer(irc, name, sid=None, uplink=None, desc='PyLink Server'): _send(irc, sid, 'ENDBURST') return sid +def squitServer(irc, source, target, text='No reason given'): + # -> :9PY SQUIT 9PZ :blah, blah + _send(irc, source, 'SQUIT %s :%s' % (target, text)) + handle_squit(irc, source, 'SQUIT', [target, text]) + def handle_ftopic(irc, numeric, command, args): # <- :70M FTOPIC #channel 1434510754 GLo|o|!GLolol@escape.the.dreamland.ca :Some channel topic channel = utils.toLower(irc, args[0]) diff --git a/protocols/ts6.py b/protocols/ts6.py index 5c68a6d..1a3954e 100644 --- a/protocols/ts6.py +++ b/protocols/ts6.py @@ -596,6 +596,11 @@ def spawnServer(irc, name, sid=None, uplink=None, desc='PyLink Server'): irc.servers[sid] = IrcServer(uplink, name, internal=True) return sid +def squitServer(irc, source, target, text='No reason given'): + # -> SQUIT 9PZ :blah, blah + irc.send('SQUIT %s :%s' % (target, text)) + handle_squit(irc, source, 'SQUIT', [target, text]) + def handle_tb(irc, numeric, command, args): # <- :42X TB 1434510754 #channel GLo|o|!GLolol@escape.the.dreamland.ca :Some channel topic channel = args[1].lower()