From 22ae4c332b6d479a1489303356a774577379b9c2 Mon Sep 17 00:00:00 2001 From: Nyo Date: Wed, 28 Dec 2016 12:16:46 +0100 Subject: [PATCH] .BANCHO. Log username changes to user notes in RAP --- pubSubHandlers/changeUsernameHandler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pubSubHandlers/changeUsernameHandler.py b/pubSubHandlers/changeUsernameHandler.py index 769cd23..692538a 100644 --- a/pubSubHandlers/changeUsernameHandler.py +++ b/pubSubHandlers/changeUsernameHandler.py @@ -6,6 +6,7 @@ from objects import glob def handleUsernameChange(userID, newUsername, targetToken=None): try: + userUtils.appendNotes(userID, "-- Username change: '{}' -> '{}'".format(userUtils.getUsername(userID), newUsername)) userUtils.changeUsername(userID, newUsername=newUsername) if targetToken is not None: targetToken.kick("Your username has been changed to {}. Please log in again.".format(newUsername), "username_change")