3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 03:33:10 +01:00

Fix SQUIT handling from 2f1a338

This commit is contained in:
James Lu 2016-07-17 23:08:47 -07:00
parent 387d47808c
commit de618393c0
2 changed files with 3 additions and 3 deletions

View File

@ -1284,8 +1284,8 @@ class Protocol():
if data.uplink == split_server:
log.debug('Server %s also hosts server %s, removing those users too...', split_server, sid)
# Recursively run SQUIT on any other hubs this server may have been connected to.
args = self.handle_squit(sid, 'SQUIT', [sid, "0",
"PyLink: Automatically splitting leaf servers of %s" % sid])
args = self._squit(sid, 'SQUIT', [sid, "0",
"PyLink: Automatically splitting leaf servers of %s" % sid])
affected_users += args['users']
for user in self.irc.servers[split_server].users.copy():

View File

@ -42,7 +42,7 @@ class IRCS2SProtocol(Protocol):
def handle_squit(self, numeric, command, args):
"""Handles incoming SQUITs."""
return _squit(numeric, command, args)
return self._squit(numeric, command, args)
def handle_away(self, numeric, command, args):
"""Handles incoming AWAY messages."""