From 72da00d23c80050488835e5cfde87c7125f4f9cf Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 4 Aug 2016 10:55:00 -0700 Subject: [PATCH] relay: block clientbot networks from hosting relays --- plugins/relay.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/relay.py b/plugins/relay.py index 54c28f0..769b512 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -1480,9 +1480,13 @@ def create(irc, source, args): if not utils.isChannel(channel): irc.reply('Error: Invalid channel %r.' % channel) return + if irc.protoname == 'clientbot': + irc.reply('Error: Clientbot networks cannot be used to host a relay.') + return if source not in irc.channels[channel].users: irc.reply('Error: You must be in %r to complete this operation.' % channel) return + irc.checkAuthenticated(source) # Check to see whether the channel requested is already part of a different