mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-27 13:31:10 -05:00
RelayNext: fix disconnected networks causing error in 'nicks'
Reported by @nathan0.
This commit is contained in:
parent
a08eb2dc4a
commit
84de8f100e
@ -345,7 +345,8 @@ class RelayNext(callbacks.Plugin):
|
||||
channel, net = cn.split("@", 1)
|
||||
try:
|
||||
c = world.getIrc(net).state.channels[channel]
|
||||
except KeyError:
|
||||
except (KeyError, AttributeError):
|
||||
# Unknown network or network disconnected.
|
||||
continue
|
||||
totalUsers += len(c.users)
|
||||
users = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user