fix bug in nick change
diff --git a/chatdialog.cpp b/chatdialog.cpp
index d2f4181..0b3d6ad 100644
--- a/chatdialog.cpp
+++ b/chatdialog.cpp
@@ -979,9 +979,17 @@
 
     
   }
+  else if (needFresh && m_sock == NULL)
+  {
+    m_history.clear();
+    m_historyInitialized = false;
+    initializeSync();
+  }
   else
   {
-    initializeSync();
+#ifdef __DEBUG
+    std::cout << "Just changing nicks, we're good. " << std::endl;
+#endif
   }
 
   fitView();