core: Fix timestamps in manual /away messages
authorShane Synan <digitalcircuit36939@gmail.com>
Fri, 14 Apr 2017 00:26:08 +0000 (19:26 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 24 Apr 2017 21:37:36 +0000 (23:37 +0200)
commitdd69349ca91776432a4a53aa4d18dd8ef018cd26
tree4f218395e6493c368404cd1ec60be4c5396bcaff
parentcb53823eeecff3f033adfe2cb1a48d8b8a89dbae
core: Fix timestamps in manual /away messages

Change handleAway() to NOT skip timestamp formatting by default.
This is the intended behavior as the one situation where it should be
skipped already manually sets skipFormatting to true.  All other
places deal with unformatted input strings (either from identity or
set by the client).

Remove now-redundant call to formatCurrentDateTimeInString() as the
handleAway command now uses it by default.

Fixes sending "/away Away since %%hh:mm%% on %%dd.MM%%" on the client
not getting formatted as "Away since 07:43 on 22.10" or some such.

Resolves GH-288.
src/core/coresession.cpp
src/core/coreuserinputhandler.h