X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoresession.cpp;h=39bd69b7f856f59bca4ca49abeb447998edfc7d7;hp=5c377c85cbe0a2bf8130e6202e8ecc55eb12eb56;hb=10e6f4629e39c66cfb8db6ab2806bf8f13ec700b;hpb=be04b68a0f10891b81c07cdda204a9abc0ac56a7 diff --git a/src/core/coresession.cpp b/src/core/coresession.cpp index 5c377c85..39bd69b7 100644 --- a/src/core/coresession.cpp +++ b/src/core/coresession.cpp @@ -662,7 +662,7 @@ void CoreSession::clientsDisconnected() if (identity->detachAwayEnabled() && !me->isAway()) { if (!identity->detachAwayReason().isEmpty()) - awayReason = identity->detachAwayReason(); + awayReason = formatCurrentDateTimeInString(identity->detachAwayReason()); net->setAutoAwayActive(true); net->userInputHandler()->handleAway(BufferInfo(), awayReason); } @@ -670,7 +670,7 @@ void CoreSession::clientsDisconnected() } -void CoreSession::globalAway(const QString &msg) +void CoreSession::globalAway(const QString &msg, const bool skipFormatting) { QHash::iterator netIter = _networks.begin(); CoreNetwork *net = 0; @@ -681,7 +681,7 @@ void CoreSession::globalAway(const QString &msg) if (!net->isConnected()) continue; - net->userInputHandler()->issueAway(msg, false /* no force away */); + net->userInputHandler()->issueAway(msg, false /* no force away */, skipFormatting); } }