Fixed help not respecting !notice. Closes #107.
This commit is contained in:
parent
5917db89dc
commit
982d6cb697
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user