set the config's nick when changing nick. this will be saved for next time

This commit is contained in:
Brian S. Stephan 2010-07-25 10:28:50 -05:00
parent 93c86257a0
commit 748b59a272

View File

@ -117,6 +117,7 @@ def sub_change_nick(connection, event, nick, userhost, replypath, what, admin_un
if what.split(' ')[0] == 'nick' and admin_unlocked:
newnick = what.split(' ')[1]
connection.nick(newnick)
config.set('IRC', 'nick', newnick)
connection.privmsg(replypath, 'changed nickname')
#####