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

protocols: topicBurst -> topic_burst

This commit is contained in:
James Lu 2017-06-30 21:29:11 -07:00
parent d0846170c4
commit f38b9c9a2c
6 changed files with 8 additions and 8 deletions

View File

@ -303,7 +303,7 @@ class ClientbotWrapperProtocol(IRCCommonProtocol):
def _stub(self, *args):
"""Stub outgoing command function (does nothing)."""
return
kill = topic = topicBurst = knock = numeric = _stub
kill = topic = topic_burst = knock = numeric = _stub
def updateClient(self, target, field, text):
"""Updates the known ident, host, or realname of a client."""

View File

@ -68,7 +68,7 @@ class HybridProtocol(TS6Protocol):
# CHW: Allow sending messages to @#channel and the like.
# KNOCK: Support for /knock
# SVS: Deal with extended NICK/UID messages that contain service IDs/stamps
# TBURST: Topic Burst command; we send this in topicBurst
# TBURST: Topic Burst command; we send this in topic_burst
# DLN: DLINE command
# UNDLN: UNDLINE command
# KLN: KLINE command
@ -135,7 +135,7 @@ class HybridProtocol(TS6Protocol):
else:
raise NotImplementedError("Changing field %r of a client is unsupported by this protocol." % field)
def topicBurst(self, numeric, target, text):
def topic_burst(self, numeric, target, text):
"""Sends a topic change from a PyLink server. This is usually used on burst."""
# <- :0UY TBURST 1459308205 #testchan 1459309379 dan!~d@localhost :sdf
if not self.is_internal_server(numeric):

View File

@ -233,7 +233,7 @@ class InspIRCdProtocol(TS6BaseProtocol):
if self.is_internal_client(target):
self._remove_client(target)
def topicBurst(self, numeric, target, text):
def topic_burst(self, numeric, target, text):
"""Sends a topic change from a PyLink server. This is usually used on burst."""
if not self.is_internal_server(numeric):
raise LookupError('No such PyLink server exists.')

View File

@ -689,7 +689,7 @@ class P10Protocol(IRCS2SProtocol):
self.channels[target].topic = text
self.channels[target].topicset = True
def topicBurst(self, numeric, target, text):
def topic_burst(self, numeric, target, text):
"""Sends a TOPIC change from a PyLink server."""
# <- AB T #test GL!~gl@nefarious.midnight.vpn 1460852591 1460855795 :blah

View File

@ -195,7 +195,7 @@ class TS6Protocol(TS6BaseProtocol):
joinedmodes = self.join_modes(modes)
self._send_with_prefix(numeric, 'MODE %s %s' % (target, joinedmodes))
def topicBurst(self, numeric, target, text):
def topic_burst(self, numeric, target, text):
"""Sends a topic change from a PyLink server. This is usually used on burst."""
if not self.is_internal_server(numeric):
raise LookupError('No such PyLink server exists.')
@ -330,7 +330,7 @@ class TS6Protocol(TS6BaseProtocol):
# KNOCK: support for /knock
# SAVE: support for SAVE (forces user to UID in nick collision)
# SERVICES: adds mode +r (only registered users can join a channel)
# TB: topic burst command; we send this in topicBurst
# TB: topic burst command; we send this in topic_burst
# EUID: extended UID command, which includes real hostname + account data info,
# and allows sending CHGHOST without ENCAP.
# RSFNC: states that we support RSFNC (forced nick changed attempts). XXX: With atheme services,

View File

@ -266,7 +266,7 @@ class UnrealProtocol(TS6BaseProtocol):
joinedmodes = self.join_modes(modes)
self._send_with_prefix(target, 'UMODE2 %s' % joinedmodes)
def topicBurst(self, numeric, target, text):
def topic_burst(self, numeric, target, text):
"""Sends a TOPIC change from a PyLink server."""
if not self.is_internal_server(numeric):
raise LookupError('No such PyLink server exists.')