3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

relay_cb: use the full network name in prefixes

This commit is contained in:
James Lu 2016-07-23 22:30:25 -07:00
parent 05a5ec7e19
commit 8dd0a904d2

View File

@ -66,6 +66,10 @@ def cb_relay_core(irc, source, command, args):
except (AttributeError, KeyError):
return
netname = origuser[0]
try: # Try to get the full network name
netname = conf.conf['servers'][netname]['netname']
except KeyError:
pass
# Figure out where the message is destined to.
target = args.get('channel') or args.get('target')