From 927fa9aac986ab90af3327e78f2598dbf3271f83 Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 30 Jun 2017 21:29:38 -0700 Subject: [PATCH] protocols: updateClient -> update_client --- protocols/clientbot.py | 10 +++++----- protocols/hybrid.py | 2 +- protocols/inspircd.py | 2 +- protocols/p10.py | 2 +- protocols/ratbox.py | 4 ++-- protocols/ts6.py | 2 +- protocols/unreal.py | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/protocols/clientbot.py b/protocols/clientbot.py index 0db1691..846e039 100644 --- a/protocols/clientbot.py +++ b/protocols/clientbot.py @@ -305,10 +305,10 @@ class ClientbotWrapperProtocol(IRCCommonProtocol): return kill = topic = topic_burst = knock = numeric = _stub - def updateClient(self, target, field, text): + def update_client(self, target, field, text): """Updates the known ident, host, or realname of a client.""" if target not in self.users: - log.warning("(%s) Unknown target %s for updateClient()", self.name, target) + log.warning("(%s) Unknown target %s for update_client()", self.name, target) return u = self.users[target] @@ -711,9 +711,9 @@ class ClientbotWrapperProtocol(IRCCommonProtocol): log.debug("(%s) Ignoring extraneous /WHO info for %s", self.name, nick) return - self.updateClient(uid, 'IDENT', ident) - self.updateClient(uid, 'HOST', host) - self.updateClient(uid, 'GECOS', realname) + self.update_client(uid, 'IDENT', ident) + self.update_client(uid, 'HOST', host) + self.update_client(uid, 'GECOS', realname) # The status given uses the following letters: [*][@|+] # H means here (not marked /away) diff --git a/protocols/hybrid.py b/protocols/hybrid.py index e262b1c..2480b63 100644 --- a/protocols/hybrid.py +++ b/protocols/hybrid.py @@ -115,7 +115,7 @@ class HybridProtocol(TS6Protocol): modes=raw_modes, ip=ip, realname=realname)) return u - def updateClient(self, target, field, text): + def update_client(self, target, field, text): """Updates the ident, host, or realname of a PyLink client.""" # https://github.com/ircd-hybrid/ircd-hybrid/blob/58323b8/modules/m_svsmode.c#L40-L103 # parv[0] = command diff --git a/protocols/inspircd.py b/protocols/inspircd.py index 094b2b9..11a5a1b 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -255,7 +255,7 @@ class InspIRCdProtocol(TS6BaseProtocol): raise LookupError('No such PyLink client exists.') self._send_with_prefix(numeric, 'ENCAP * KNOCK %s :%s' % (target, text)) - def updateClient(self, target, field, text): + def update_client(self, target, field, text): """Updates the ident, host, or realname of any connected client.""" field = field.upper() diff --git a/protocols/p10.py b/protocols/p10.py index 8563be6..018dfc1 100644 --- a/protocols/p10.py +++ b/protocols/p10.py @@ -705,7 +705,7 @@ class P10Protocol(IRCS2SProtocol): self.channels[target].topic = text self.channels[target].topicset = True - def updateClient(self, target, field, text): + def update_client(self, target, field, text): """Updates the ident or host of any connected client.""" uobj = self.users[target] diff --git a/protocols/ratbox.py b/protocols/ratbox.py index 7d596fd..9377d5c 100644 --- a/protocols/ratbox.py +++ b/protocols/ratbox.py @@ -82,8 +82,8 @@ class RatboxProtocol(TS6Protocol): return u - def updateClient(self, target, field, text): - """updateClient() stub for ratbox.""" + def update_client(self, target, field, text): + """update_client() stub for ratbox.""" raise NotImplementedError("User data changing is not supported on ircd-ratbox.") def handle_realhost(self, uid, command, args): diff --git a/protocols/ts6.py b/protocols/ts6.py index d40d4da..b58ee9b 100644 --- a/protocols/ts6.py +++ b/protocols/ts6.py @@ -227,7 +227,7 @@ class TS6Protocol(TS6BaseProtocol): # No text value is supported here; drop it. self._send_with_prefix(numeric, 'KNOCK %s' % target) - def updateClient(self, target, field, text): + def update_client(self, target, field, text): """Updates the hostname of any connected client.""" field = field.upper() if field == 'HOST': diff --git a/protocols/unreal.py b/protocols/unreal.py index aaebdff..4cc3834 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -274,7 +274,7 @@ class UnrealProtocol(TS6BaseProtocol): self.channels[target].topic = text self.channels[target].topicset = True - def updateClient(self, target, field, text): + def update_client(self, target, field, text): """Updates the ident, host, or realname of any connected client.""" field = field.upper()