3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-23 18:54:05 +01:00

opercmds: fix --force-kb check on masskill

This commit is contained in:
James Lu 2017-08-07 16:50:04 -07:00
parent dd1444dcd9
commit 8987b91845

View File

@ -195,10 +195,11 @@ def masskill(irc, source, args, use_regex=False):
'networks' plugin and adjust your banmasks accordingly.""" 'networks' plugin and adjust your banmasks accordingly."""
permissions.check_permissions(irc, source, ['opercmds.masskill']) permissions.check_permissions(irc, source, ['opercmds.masskill'])
args = masskill_parser.parse_args(args)
if args.force_kb: if args.force_kb:
permissions.check_permissions(irc, source, ['opercmds.masskill.force']) permissions.check_permissions(irc, source, ['opercmds.masskill.force'])
args = masskill_parser.parse_args(args)
reason = ' '.join(args.reason) reason = ' '.join(args.reason)
results = killed = 0 results = killed = 0