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:
parent
05a5ec7e19
commit
8dd0a904d2
@ -66,6 +66,10 @@ def cb_relay_core(irc, source, command, args):
|
|||||||
except (AttributeError, KeyError):
|
except (AttributeError, KeyError):
|
||||||
return
|
return
|
||||||
netname = origuser[0]
|
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.
|
# Figure out where the message is destined to.
|
||||||
target = args.get('channel') or args.get('target')
|
target = args.get('channel') or args.get('target')
|
||||||
|
Loading…
Reference in New Issue
Block a user