3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 11:39:25 +01:00

relay: only show creator in LINKED if the value exists

This commit is contained in:
James Lu 2015-12-26 15:24:06 -08:00
parent 4529481556
commit 04275d1dfa

View File

@ -1282,7 +1282,11 @@ def linked(irc, source, args):
if utils.isOper(irc, source): if utils.isOper(irc, source):
# If the caller is an oper, we can show the hostmasks of people # If the caller is an oper, we can show the hostmasks of people
# that created all the available channels (Janus does this too!!) # that created all the available channels (Janus does this too!!)
irc.msg(source, ' Channel created by \x02%s\x02.' % v.get('creator', '(N/A)')) creator = v.get('creator')
if creator:
# But only if the value actually exists (old DBs will have it
# missing).
irc.msg(source, ' Channel created by \x02%s\x02.' % creator)
@utils.add_cmd @utils.add_cmd
def linkacl(irc, source, args): def linkacl(irc, source, args):