mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
relay: only show creator in LINKED if the value exists
This commit is contained in:
parent
4529481556
commit
04275d1dfa
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user