LinkRelay: Make @list display a message when there is no relay.

master
Valentin Lorentz 2013-02-25 16:37:21 +01:00
parent 6b1e9c01b1
commit 2150cc4391
1 changed files with 4 additions and 0 deletions

View File

@ -159,6 +159,10 @@ class LinkRelay(callbacks.Plugin):
"""takes no arguments
Returns all the defined relay links"""
if not self.relays:
irc.reply(_('This is no relay enabled. Use "linkrelay add" to '
'add one.'))
return
for relay in self.relays:
if relay.hasTargetIRC:
hasIRC = 'Link healthy!'