mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 13:09:23 +01:00
relay, ServiceBot: remove dead code
This commit is contained in:
parent
72c2fa38e9
commit
bf4863eb6d
@ -511,16 +511,6 @@ def initialize_channel(irc, channel):
|
|||||||
# Join their (remote) users and set their modes, if applicable.
|
# Join their (remote) users and set their modes, if applicable.
|
||||||
if remotechan in remoteirc.channels:
|
if remotechan in remoteirc.channels:
|
||||||
rc = remoteirc.channels[remotechan]
|
rc = remoteirc.channels[remotechan]
|
||||||
'''
|
|
||||||
if not hasattr(rc, '_relay_initial_burst'):
|
|
||||||
rc._relay_initial_burst = threading.Event()
|
|
||||||
|
|
||||||
if rc._relay_initial_burst.is_set():
|
|
||||||
log.debug('(%s) relay.initialize_channel: skipping inbound burst from %s/%s => %s/%s '
|
|
||||||
'as it has already been bursted', irc.name, remoteirc.name, remotechan, irc.name, channel)
|
|
||||||
continue
|
|
||||||
rc._relay_initial_burst.set()
|
|
||||||
'''
|
|
||||||
relay_joins(remoteirc, remotechan, rc.users, rc.ts, targetirc=irc)
|
relay_joins(remoteirc, remotechan, rc.users, rc.ts, targetirc=irc)
|
||||||
|
|
||||||
# Only update the topic if it's different from what we already have,
|
# Only update the topic if it's different from what we already have,
|
||||||
|
13
utils.py
13
utils.py
@ -248,19 +248,6 @@ class ServiceBot():
|
|||||||
to_part = []
|
to_part = []
|
||||||
persistent_channels = self.get_persistent_channels(irc)
|
persistent_channels = self.get_persistent_channels(irc)
|
||||||
for channel in channels:
|
for channel in channels:
|
||||||
'''
|
|
||||||
if channel in irc.channels and uid in irc.channels[channel].users:
|
|
||||||
for dch_namespace, dch_data in self.dynamic_channels.items():
|
|
||||||
if irc.name in dch_data and channel in dch_data[irc.name]:
|
|
||||||
log.debug('(%s/%s) Not parting %r because namespace %r still registers it '
|
|
||||||
'as a dynamic channel.', irc.name, self.name, channel,
|
|
||||||
dch_namespace)
|
|
||||||
break
|
|
||||||
else:
|
|
||||||
to_part.append(channel)
|
|
||||||
irc.part(uid, channel, '') # TODO: configurable part message?
|
|
||||||
'''
|
|
||||||
|
|
||||||
if channel in irc.channels and uid in irc.channels[channel].users:
|
if channel in irc.channels and uid in irc.channels[channel].users:
|
||||||
if channel in persistent_channels:
|
if channel in persistent_channels:
|
||||||
log.debug('(%s/%s) Not parting %r because it is registered '
|
log.debug('(%s/%s) Not parting %r because it is registered '
|
||||||
|
Loading…
Reference in New Issue
Block a user