3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-24 03:04:05 +01:00

relay_clientbot: display the remote channel in join/kick/etc relay, not the local channel

This commit is contained in:
James Lu 2016-09-19 17:40:50 -07:00
parent e60c020634
commit c62dd272d6

View File

@ -148,6 +148,11 @@ def cb_relay_core(irc, source, command, args):
args.update({'netname': netname, 'sender': sourcename, 'sender_identhost': identhost, args.update({'netname': netname, 'sender': sourcename, 'sender_identhost': identhost,
'colored_sender': color_text(sourcename), 'colored_netname': color_text(netname)}) 'colored_sender': color_text(sourcename), 'colored_netname': color_text(netname)})
if 'channel' in args:
# Display the real channel instead of the local name, if applicable
args['local_channel'] = args['channel']
args['channel'] = relay.getRemoteChan(irc, world.networkobjects[origuser[0]], args['channel'])
log.debug('(%s) relay_clientbot: coersing $channel from %s to %s', irc.name, args['local_channel'], args['channel'])
for target in targets: for target in targets:
cargs = args.copy() # Copy args list to manipulate them in a channel specific way cargs = args.copy() # Copy args list to manipulate them in a channel specific way