3
0
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:
James Lu 2017-08-31 13:19:34 -07:00
parent 85a7dd3dff
commit 9e7af9ac3d

View File

@ -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