projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c12da4c
)
fixing other part of BR #208 (setting own away message)
author
Marcus Eggenberger
<egs@quassel-irc.org>
Fri, 11 Jul 2008 12:01:28 +0000
(14:01 +0200)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Fri, 11 Jul 2008 12:01:28 +0000
(14:01 +0200)
src/core/userinputhandler.cpp
patch
|
blob
|
history
diff --git
a/src/core/userinputhandler.cpp
b/src/core/userinputhandler.cpp
index
c42c475
..
1bd29bd
100644
(file)
--- a/
src/core/userinputhandler.cpp
+++ b/
src/core/userinputhandler.cpp
@@
-57,13
+57,16
@@
void UserInputHandler::handleAway(const BufferInfo &bufferInfo, const QString &m
Q_UNUSED(bufferInfo)
QString awayMsg = msg;
+ IrcUser *me = network()->me();
+
// if there is no message supplied we have to check if we are already away or not
if(msg.isEmpty()) {
- IrcUser *me = network()->me();
if(me && !me->isAway())
awayMsg = networkConnection()->identity()->awayReason();
}
-
+ if(me)
+ me->setAwayMessage(awayMsg);
+
putCmd("AWAY", serverEncode(awayMsg));
}