Fixed help not respecting !notice. Closes #107.

This commit is contained in:
Vgr E.Barry 2015-01-11 19:23:45 -05:00
parent 5917db89dc
commit 982d6cb697

View File

@ -6090,9 +6090,15 @@ def get_help(cli, rnick, chan, rest):
if fn[0].admin_only and name not in fn[0].aliases:
afns.append("\u0002"+name+"\u0002")
fns.sort() # Output commands in alphabetical order
if chan == nick:
pm(cli, nick, "Commands: "+", ".join(fns))
else:
cli.notice(nick, "Commands: "+", ".join(fns))
if afns:
afns.sort()
if chan == nick:
pm(cli, nick, "Admin Commands: "+", ".join(afns))
else:
cli.notice(nick, "Admin Commands: "+", ".join(afns))
@hook("invite")