mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-26 04:04:22 +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)
|
irc.users[target].nick, notice=True)
|
||||||
return
|
return
|
||||||
remoteirc = world.networkobjects[homenet]
|
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)
|
user = getRemoteUser(irc, remoteirc, numeric, spawnIfMissing=False)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user