Permalink
Browse files

Merge pull request #611 from NuclearW/awaystore-timestamp

Add timestamp parsing to awaystore away messages
  • Loading branch information...
DarthGandalf committed Aug 1, 2014
2 parents 8a5e7ef + 6aaf3ba commit e97a3ce9d0de989d7f1b8c994e1da90d76a5ef6f
Showing with 4 additions and 2 deletions.
  1. +4 −2 modules/awaystore.cpp
View
@@ -53,12 +53,14 @@ class CAway : public CModule
{
void AwayCommand(const CString& sCommand) {
CString sReason;
+ time_t curtime;
+ time(&curtime);
if (sCommand.Token(1) != "-quiet") {
- sReason = sCommand.Token(1, true);
+ sReason = CUtils::FormatTime(curtime, sCommand.Token(1, true), m_pUser->GetTimezone());
PutModNotice("You have been marked as away");
} else {
- sReason = sCommand.Token(2, true);
+ sReason = CUtils::FormatTime(curtime, sCommand.Token(2, true), m_pUser->GetTimezone());
}
Away(false, sReason);

0 comments on commit e97a3ce

Please sign in to comment.