projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed the behavior of RPL_AWAY server messages:
[quassel.git]
/
src
/
common
/
ircuser.cpp
diff --git
a/src/common/ircuser.cpp
b/src/common/ircuser.cpp
index
e8ccc37
..
704934b
100644
(file)
--- a/
src/common/ircuser.cpp
+++ b/
src/common/ircuser.cpp
@@
-40,6
+40,7
@@
IrcUser::IrcUser(const QString &hostmask, Network *network)
_server(),
_idleTime(QDateTime::currentDateTime()),
_ircOperator(),
_server(),
_idleTime(QDateTime::currentDateTime()),
_ircOperator(),
+ _lastAwayMessage(0),
_network(network),
_codecForEncoding(0),
_codecForDecoding(0)
_network(network),
_codecForEncoding(0),
_codecForDecoding(0)
@@
-95,6
+96,10
@@
QString IrcUser::ircOperator() const {
return _ircOperator;
}
return _ircOperator;
}
+int IrcUser::lastAwayMessage() const {
+ return _lastAwayMessage;
+}
+
QString IrcUser::userModes() const {
return _userModes;
}
QString IrcUser::userModes() const {
return _userModes;
}
@@
-200,6
+205,13
@@
void IrcUser::setIrcOperator(const QString &ircOperator) {
}
}
}
}
+void IrcUser::setLastAwayMessage(const int &lastAwayMessage) {
+ if(lastAwayMessage > _lastAwayMessage) {
+ _lastAwayMessage = lastAwayMessage;
+ emit lastAwayMessageSet(lastAwayMessage);
+ }
+}
+
void IrcUser::setHost(const QString &host) {
if(!host.isEmpty() && _host != host) {
_host = host;
void IrcUser::setHost(const QString &host) {
if(!host.isEmpty() && _host != host) {
_host = host;