3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 04:02:45 +01:00

relay: error when someone attempts to PM a clientbot user

PMs aren't routed through Clientbot yet.
This commit is contained in:
James Lu 2016-07-23 21:09:25 -07:00
parent 51dcfb7d1e
commit 38793654ea

View File

@ -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: