mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
protocols: topicBurst -> topic_burst
This commit is contained in:
parent
d0846170c4
commit
f38b9c9a2c
@ -303,7 +303,7 @@ class ClientbotWrapperProtocol(IRCCommonProtocol):
|
|||||||
def _stub(self, *args):
|
def _stub(self, *args):
|
||||||
"""Stub outgoing command function (does nothing)."""
|
"""Stub outgoing command function (does nothing)."""
|
||||||
return
|
return
|
||||||
kill = topic = topicBurst = knock = numeric = _stub
|
kill = topic = topic_burst = knock = numeric = _stub
|
||||||
|
|
||||||
def updateClient(self, target, field, text):
|
def updateClient(self, target, field, text):
|
||||||
"""Updates the known ident, host, or realname of a client."""
|
"""Updates the known ident, host, or realname of a client."""
|
||||||
|
@ -68,7 +68,7 @@ class HybridProtocol(TS6Protocol):
|
|||||||
# CHW: Allow sending messages to @#channel and the like.
|
# CHW: Allow sending messages to @#channel and the like.
|
||||||
# KNOCK: Support for /knock
|
# KNOCK: Support for /knock
|
||||||
# SVS: Deal with extended NICK/UID messages that contain service IDs/stamps
|
# 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
|
# DLN: DLINE command
|
||||||
# UNDLN: UNDLINE command
|
# UNDLN: UNDLINE command
|
||||||
# KLN: KLINE command
|
# KLN: KLINE command
|
||||||
@ -135,7 +135,7 @@ class HybridProtocol(TS6Protocol):
|
|||||||
else:
|
else:
|
||||||
raise NotImplementedError("Changing field %r of a client is unsupported by this protocol." % field)
|
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."""
|
"""Sends a topic change from a PyLink server. This is usually used on burst."""
|
||||||
# <- :0UY TBURST 1459308205 #testchan 1459309379 dan!~d@localhost :sdf
|
# <- :0UY TBURST 1459308205 #testchan 1459309379 dan!~d@localhost :sdf
|
||||||
if not self.is_internal_server(numeric):
|
if not self.is_internal_server(numeric):
|
||||||
|
@ -233,7 +233,7 @@ class InspIRCdProtocol(TS6BaseProtocol):
|
|||||||
if self.is_internal_client(target):
|
if self.is_internal_client(target):
|
||||||
self._remove_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."""
|
"""Sends a topic change from a PyLink server. This is usually used on burst."""
|
||||||
if not self.is_internal_server(numeric):
|
if not self.is_internal_server(numeric):
|
||||||
raise LookupError('No such PyLink server exists.')
|
raise LookupError('No such PyLink server exists.')
|
||||||
|
@ -689,7 +689,7 @@ class P10Protocol(IRCS2SProtocol):
|
|||||||
self.channels[target].topic = text
|
self.channels[target].topic = text
|
||||||
self.channels[target].topicset = True
|
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."""
|
"""Sends a TOPIC change from a PyLink server."""
|
||||||
# <- AB T #test GL!~gl@nefarious.midnight.vpn 1460852591 1460855795 :blah
|
# <- AB T #test GL!~gl@nefarious.midnight.vpn 1460852591 1460855795 :blah
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ class TS6Protocol(TS6BaseProtocol):
|
|||||||
joinedmodes = self.join_modes(modes)
|
joinedmodes = self.join_modes(modes)
|
||||||
self._send_with_prefix(numeric, 'MODE %s %s' % (target, joinedmodes))
|
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."""
|
"""Sends a topic change from a PyLink server. This is usually used on burst."""
|
||||||
if not self.is_internal_server(numeric):
|
if not self.is_internal_server(numeric):
|
||||||
raise LookupError('No such PyLink server exists.')
|
raise LookupError('No such PyLink server exists.')
|
||||||
@ -330,7 +330,7 @@ class TS6Protocol(TS6BaseProtocol):
|
|||||||
# KNOCK: support for /knock
|
# KNOCK: support for /knock
|
||||||
# SAVE: support for SAVE (forces user to UID in nick collision)
|
# SAVE: support for SAVE (forces user to UID in nick collision)
|
||||||
# SERVICES: adds mode +r (only registered users can join a channel)
|
# 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,
|
# EUID: extended UID command, which includes real hostname + account data info,
|
||||||
# and allows sending CHGHOST without ENCAP.
|
# and allows sending CHGHOST without ENCAP.
|
||||||
# RSFNC: states that we support RSFNC (forced nick changed attempts). XXX: With atheme services,
|
# RSFNC: states that we support RSFNC (forced nick changed attempts). XXX: With atheme services,
|
||||||
|
@ -266,7 +266,7 @@ class UnrealProtocol(TS6BaseProtocol):
|
|||||||
joinedmodes = self.join_modes(modes)
|
joinedmodes = self.join_modes(modes)
|
||||||
self._send_with_prefix(target, 'UMODE2 %s' % joinedmodes)
|
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."""
|
"""Sends a TOPIC change from a PyLink server."""
|
||||||
if not self.is_internal_server(numeric):
|
if not self.is_internal_server(numeric):
|
||||||
raise LookupError('No such PyLink server exists.')
|
raise LookupError('No such PyLink server exists.')
|
||||||
|
Loading…
Reference in New Issue
Block a user