projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c803444
)
Fixed a bug where the session restore always marked you as away
author
Marcus Eggenberger
<egs@quassel-irc.org>
Wed, 11 Feb 2009 19:39:43 +0000
(20:39 +0100)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Wed, 11 Feb 2009 19:39:43 +0000
(20:39 +0100)
(either your old away message or if unset the default away message)
src/core/corenetwork.cpp
patch
|
blob
|
history
diff --git
a/src/core/corenetwork.cpp
b/src/core/corenetwork.cpp
index
3dc0cc2
..
5e2c3b1
100644
(file)
--- 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();