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:
parent
14bebd98e7
commit
a080fd253f
@ -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',))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user