From 38793654ea571b3421e7b0513d410c961efd0dc3 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 23 Jul 2016 21:09:25 -0700 Subject: [PATCH] relay: error when someone attempts to PM a clientbot user PMs aren't routed through Clientbot yet. --- plugins/relay.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/relay.py b/plugins/relay.py index da4801a..c1d386c 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -1057,6 +1057,12 @@ def handle_messages(irc, numeric, command, args): irc.users[target].nick, notice=True) return remoteirc = world.networkobjects[homenet] + + if remoteirc.protoname == 'clientbot': + irc.msg(numeric, 'Error: Private messages to networks ' + 'linked via Clientbot are not yet supported.', notice=True) + return + user = getRemoteUser(irc, remoteirc, numeric, spawnIfMissing=False) try: