mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-11 20:52:42 +01:00
plugins/commands.py: warn on failed login attempts
This commit is contained in:
parent
1c7f2f6a83
commit
e7922be9fb
@ -36,6 +36,9 @@ def identify(irc, source, args):
|
||||
utils.msg(irc, source, 'Successfully logged in as %s.' % realuser)
|
||||
else:
|
||||
utils.msg(irc, source, 'Incorrect credentials.')
|
||||
u = irc.users[source]
|
||||
log.warning("(%s) Failed login to %r from user '%s!%s@%s' (UID %r).",
|
||||
irc.name, username, u.nick, u.ident, u.host, u.uid)
|
||||
|
||||
def listcommands(irc, source, args):
|
||||
cmds = list(utils.bot_commands.keys())
|
||||
|
Loading…
Reference in New Issue
Block a user