Fix lowercasing issue in !fstasis, fix "host has access" message in !fflags
This commit is contained in:
parent
ae5b39c36f
commit
017a98608c
@ -71,6 +71,7 @@ def parse_warning_target(target, lower=False):
|
|||||||
tacc = irc_lower(tacc)
|
tacc = irc_lower(tacc)
|
||||||
ident = irc_lower(ident)
|
ident = irc_lower(ident)
|
||||||
host = host.lower()
|
host = host.lower()
|
||||||
|
target = irc_lower(target)
|
||||||
thm = target + "!" + ident + "@" + host
|
thm = target + "!" + ident + "@" + host
|
||||||
elif "@" in target:
|
elif "@" in target:
|
||||||
tacc = None
|
tacc = None
|
||||||
|
@ -6479,7 +6479,7 @@ def fflags(cli, nick, chan, rest):
|
|||||||
if not var.FLAGS[hm]:
|
if not var.FLAGS[hm]:
|
||||||
msg = messages["no_access_host"].format(hm)
|
msg = messages["no_access_host"].format(hm)
|
||||||
else:
|
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)
|
reply(cli, nick, chan, msg)
|
||||||
else:
|
else:
|
||||||
acc, hm = parse_warning_target(params[0])
|
acc, hm = parse_warning_target(params[0])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user