From: Marcus Eggenberger Date: Wed, 11 Feb 2009 19:39:43 +0000 (+0100) Subject: Fixed a bug where the session restore always marked you as away X-Git-Tag: 0.4.0~91 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=7b7f0f6852c95b53a9b02d3a22a02e7c16ac7194;hp=c8034446b66ab7964433235c51ce32bfc3c9d672 Fixed a bug where the session restore always marked you as away (either your old away message or if unset the default away message) --- diff --git a/src/core/corenetwork.cpp b/src/core/corenetwork.cpp index 3dc0cc27..5e2c3b1d 100644 --- a/src/core/corenetwork.cpp +++ b/src/core/corenetwork.cpp @@ -403,7 +403,9 @@ void CoreNetwork::networkInitialized() { } // restore away state - userInputHandler()->handleAway(BufferInfo(), Core::awayMessage(userId(), networkId())); + QString awayMsg = Core::awayMessage(userId(), networkId()); + if(!awayMsg.isEmpty()) + userInputHandler()->handleAway(BufferInfo(), Core::awayMessage(userId(), networkId())); // restore old user modes if server default mode is set. IrcUser *me_ = me();