diff --git a/CHANGELOG.md b/CHANGELOG.md
index 894e38e14f483a0979c93ddc6217a77fdbfcfb44..92a83176a1045ed4fe5ebbff349369a47a07927f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,13 @@ Thanks for your interest in the Idle RPG! Feel free to contact me with ideas and
 comments, or post them in the issues of the project for public view.
 
 
+--
+## v5.2.0: released 10/22/19
+
+- new feature : people who are nickserv-identified are automatically logged in
+with their last played character
+- this happens on startup of the bot, and every time a user joins
+
 --
 ## v5.1.0: released 10/22/19
 
diff --git a/Irpg/Main.pm b/Irpg/Main.pm
index 4659e70bd21f88b145c9016059210b1090ee3104..d94a92f19e236130008bb3934a6d71b8f7a9f8fc 100644
--- a/Irpg/Main.pm
+++ b/Irpg/Main.pm
@@ -511,11 +511,8 @@ sub parse {
         # to login
         $onchan{$arg[7]}=time() if ($opts->{botchan} eq $arg[3]);
         if (exists($prev_online->{$arg[7]."!".$arg[4]."\@".$arg[5]})) {
-
             $rps->{$prev_online->{$arg[7]."!".$arg[4]."\@".$arg[5]}}{online} = 1;
-
             $auto_login{$prev_online->{$arg[7]."!".$arg[4]."\@".$arg[5]}}=1;
-
         }
         elsif (grep { $rps->{$_}{nick} eq $arg[7] } keys %$rps) {
             Irpg::Irc::sts("WHOIS $arg[7]");