mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-24 03:04:05 +01:00
ServiceBot: migrate to irc.is_channel
This commit is contained in:
parent
85a7dd3dff
commit
9e7af9ac3d
2
utils.py
2
utils.py
@ -215,7 +215,7 @@ class ServiceBot():
|
||||
joinmodes = ''.join([m for m in joinmodes if m in irc.prefixmodes])
|
||||
|
||||
for chan in channels:
|
||||
if isChannel(chan):
|
||||
if irc.is_channel(chan):
|
||||
if chan in irc.channels and u in irc.channels[chan].users:
|
||||
log.debug('(%s) Skipping join of services %s to channel %s - it is already present', irc.name, self.name, chan)
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user