LinkRelay: bug fix
parent
bec8ffbac5
commit
9be2e72515
|
@ -1,5 +1,6 @@
|
|||
###
|
||||
# Copyright (c) 2010, quantumlemur
|
||||
# Copyright (c) 2011, Valentin Lorentz
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
|
@ -160,7 +161,10 @@ class LinkRelay(callbacks.Plugin):
|
|||
channel = triggerMsg.args[0]
|
||||
nick = triggerMsg.nick
|
||||
for relay in self.relays:
|
||||
if relay.channelRegex.match(channel) and relay.networkRegex.match(irc.network) and (len(triggerMsg.args[1] < 1 or relay.messageRegex.search(triggerMsg.args[1]))):
|
||||
if relay.channelRegex.match(channel) and \
|
||||
relay.networkRegex.match(irc.network) and \
|
||||
(len(triggerMsg.args[1]) < 1 or
|
||||
relay.messageRegex.search(triggerMsg.args[1])):
|
||||
if not relay.hasIRC:
|
||||
self.log.info('LinkRelay: IRC %s not yet scraped.' % relay.targetNetwork)
|
||||
elif relay.targetIRC.zombie:
|
||||
|
|
Loading…
Reference in New Issue