mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
protocols: rename checkCollision -> check_nick_collision() (#454)
This commit is contained in:
parent
8f14cb238b
commit
08c0082430
@ -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.checkCollision(nick)
|
||||
self.check_nick_collision(nick)
|
||||
ts, modes, ident, host, ip, uid, account, realname = args[2:10]
|
||||
if account == '*':
|
||||
account = None
|
||||
|
@ -575,7 +575,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.checkCollision(nick)
|
||||
self.check_nick_collision(nick)
|
||||
realname = args[-1]
|
||||
self.irc.users[uid] = userobj = IrcUser(nick, ts, uid, numeric, ident, host, realname, realhost, ip)
|
||||
|
||||
|
@ -14,7 +14,7 @@ class IRCS2SProtocol(Protocol):
|
||||
self.protocol_caps = {'can-spawn-clients', 'has-ts', 'can-host-relay',
|
||||
'can-track-servers'}
|
||||
|
||||
def checkCollision(self, nick):
|
||||
def check_nick_collision(self, nick):
|
||||
"""
|
||||
Nick collision checker.
|
||||
"""
|
||||
|
@ -901,7 +901,7 @@ class P10Protocol(IRCS2SProtocol):
|
||||
# <- AB N GL 1 1460673049 ~gl nefarious.midnight.vpn +iw B]AAAB ABAAA :realname
|
||||
|
||||
nick = args[0]
|
||||
self.checkCollision(nick)
|
||||
self.check_nick_collision(nick)
|
||||
ts, ident, host = args[2:5]
|
||||
realhost = host
|
||||
ip = args[-3]
|
||||
|
@ -499,7 +499,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.checkCollision(nick)
|
||||
self.check_nick_collision(nick)
|
||||
ts, modes, ident, host, ip, uid, realhost, accountname, realname = args[2:11]
|
||||
if realhost == '*':
|
||||
realhost = None
|
||||
|
@ -390,7 +390,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.checkCollision(nick)
|
||||
self.check_nick_collision(nick)
|
||||
ts, ident, realhost, uid, accountname, modestring, host = args[2:9]
|
||||
|
||||
if host == '*':
|
||||
|
Loading…
Reference in New Issue
Block a user