.BANCHO. Removed dashes in when tracking notes for CM

This commit is contained in:
Nyo 2017-01-06 12:55:50 +01:00
parent fc3736eba8
commit 84f1fb566c

View File

@ -6,7 +6,7 @@ from objects import glob
def handleUsernameChange(userID, newUsername, targetToken=None):
try:
userUtils.appendNotes(userID, "-- Username change: '{}' -> '{}'".format(userUtils.getUsername(userID), newUsername))
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")