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

protocols: rename check_nick_collision to _check_nick_collision

This commit is contained in:
James Lu 2017-07-07 03:18:40 -07:00
parent c5d06b2d41
commit 5d5c861a93
7 changed files with 7 additions and 7 deletions

View File

@ -169,7 +169,7 @@ class HybridProtocol(TS6Protocol):
"""
# <- :0UY UID dan 1 1451041551 +Facdeiklosuw ~ident localhost 127.0.0.1 0UYAAAAAB * :realname
nick = args[0]
self.check_nick_collision(nick)
self._check_nick_collision(nick)
ts, modes, ident, host, ip, uid, account, realname = args[2:10]
if account == '*':
account = None

View File

@ -555,7 +555,7 @@ class InspIRCdProtocol(TS6BaseProtocol):
"""Handles incoming UID commands (user introduction)."""
# :70M UID 70MAAAAAB 1429934638 GL 0::1 hidden-7j810p.9mdf.lrek.0000.0000.IP gl 0::1 1429934638 +Wioswx +ACGKNOQXacfgklnoqvx :realname
uid, ts, nick, realhost, host, ident, ip = args[0:7]
self.check_nick_collision(nick)
self._check_nick_collision(nick)
realname = args[-1]
self.users[uid] = userobj = User(nick, ts, uid, numeric, ident, host, realname, realhost, ip)

View File

@ -454,7 +454,7 @@ class IRCS2SProtocol(IRCCommonProtocol):
self.channels[target].topicset = True
topic_burst = topic
def check_nick_collision(self, nick):
def _check_nick_collision(self, nick):
"""
Nick collision checker.
"""

View File

@ -434,7 +434,7 @@ class NgIRCdProtocol(IRCS2SProtocol):
# <- :ngircd.midnight.local NICK GL 1 ~gl localhost 1 +io :realname
nick = args[0]
assert source in self.servers, "Server %r tried to introduce nick %r but isn't in the servers index?" % (source, nick)
self.check_nick_collision(nick)
self._check_nick_collision(nick)
ident = args[2]
host = args[3]

View File

@ -839,7 +839,7 @@ class P10Protocol(IRCS2SProtocol):
# <- AB N GL 1 1460673049 ~gl nefarious.midnight.vpn +iw B]AAAB ABAAA :realname
nick = args[0]
self.check_nick_collision(nick)
self._check_nick_collision(nick)
ts, ident, host = args[2:5]
realhost = host
ip = args[-3]

View File

@ -488,7 +488,7 @@ class TS6Protocol(TS6BaseProtocol):
"""Handles incoming EUID commands (user introduction)."""
# <- :42X EUID GL 1 1437505322 +ailoswz ~gl 127.0.0.1 127.0.0.1 42XAAAAAB * * :realname
nick = args[0]
self.check_nick_collision(nick)
self._check_nick_collision(nick)
ts, modes, ident, host, ip, uid, realhost, accountname, realname = args[2:11]
if realhost == '*':
realhost = None

View File

@ -371,7 +371,7 @@ class UnrealProtocol(TS6BaseProtocol):
# arguments: nick, hopcount?, ts, ident, real-host, UID, services account (0 if none), modes,
# displayed host, cloaked (+x) host, base64-encoded IP, and realname
nick = args[0]
self.check_nick_collision(nick)
self._check_nick_collision(nick)
ts, ident, realhost, uid, accountname, modestring, host = args[2:9]
if host == '*':