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

relay: show channel descriptions before "created by" info

This commit is contained in:
James Lu 2018-06-12 02:33:29 -07:00
parent 8c42825612
commit 77fd9475b6

View File

@ -2514,6 +2514,10 @@ def linked(irc, source, args):
irc.reply(s, private=True)
desc = v.get('description')
if desc: # Show channel description, if there is one.
irc.reply(' \x02Description:\x02 %s' % desc, private=True)
if irc.is_oper(source):
s = ''
@ -2533,10 +2537,6 @@ def linked(irc, source, args):
if s: # Indent to make the list look nicer
irc.reply(' Channel created%s.' % s, private=True)
desc = v.get('description')
if desc: # Show channel description, if there is one.
irc.reply(' \x02Description:\x02 %s' % desc, private=True)
linked = utils.add_cmd(linked, featured=True)
@utils.add_cmd