LinkRelay: Prevent tracebacks for uninitialized relays.

master
Valentin Lorentz 2012-10-02 16:04:32 +00:00
parent d434bb3f80
commit b0d716fe9f
1 changed files with 2 additions and 0 deletions

View File

@ -303,6 +303,8 @@ class LinkRelay(callbacks.Plugin):
if channel is None:
for relay in self.relays:
if not relay.hasSourceIRCChannels:
continue
for channel in relay.sourceIRCChannels:
new_s = format_(relay, s, args)
if nick in relay.sourceIRCChannels[channel].users and \