3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

opercmds: log massban and masskill results to INFO

This commit is contained in:
James Lu 2017-08-07 17:15:23 -07:00
parent 14bebd98e7
commit a080fd253f

View File

@ -152,6 +152,8 @@ def massban(irc, source, args, use_regex=False):
results += 1
else:
irc.reply('Banned %s users on %r.' % (results, args.channel))
log.info('(%s) Ran massban%s for %s on %s (%s user(s) removed)', irc.name, 're' if use_regex else '',
irc.get_hostmask(source), args.channel, results)
utils.add_cmd(massban, aliases=('mban',))
def massbanre(irc, source, args):
@ -254,6 +256,8 @@ def masskill(irc, source, args, use_regex=False):
results += 1
seen_users.add(uid)
else:
log.info('(%s) Ran masskill%s for %s (%s/%s user(s) removed)', irc.name, 're' if use_regex else '',
irc.get_hostmask(source), killed, results)
irc.reply('Masskilled %s/%s users.' % (killed, results))
utils.add_cmd(masskill, aliases=('mkill',))