Fix lowercasing issue in !fstasis, fix "host has access" message in !fflags

This commit is contained in:
jacob1 2016-11-16 23:42:23 -05:00
parent ae5b39c36f
commit 017a98608c
2 changed files with 2 additions and 1 deletions

View File

@ -71,6 +71,7 @@ def parse_warning_target(target, lower=False):
tacc = irc_lower(tacc)
ident = irc_lower(ident)
host = host.lower()
target = irc_lower(target)
thm = target + "!" + ident + "@" + host
elif "@" in target:
tacc = None

View File

@ -6479,7 +6479,7 @@ def fflags(cli, nick, chan, rest):
if not var.FLAGS[hm]:
msg = messages["no_access_host"].format(hm)
else:
msg = messages["access_host"].format(acc, "".join(sorted(var.FLAGS[hm])))
msg = messages["access_host"].format(hm, "".join(sorted(var.FLAGS[hm])))
reply(cli, nick, chan, msg)
else:
acc, hm = parse_warning_target(params[0])