From 04275d1dfaa656c8028035d8005de232078d99da Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 26 Dec 2015 15:24:06 -0800 Subject: [PATCH] relay: only show creator in LINKED if the value exists --- plugins/relay.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/relay.py b/plugins/relay.py index c68e180..7c02b50 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -1282,7 +1282,11 @@ def linked(irc, source, args): if utils.isOper(irc, source): # If the caller is an oper, we can show the hostmasks of people # 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 def linkacl(irc, source, args):