mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 11:42:51 +01:00
relay: error when someone attempts to PM a clientbot user
PMs aren't routed through Clientbot yet.
This commit is contained in:
parent
51dcfb7d1e
commit
38793654ea
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user