diff options
Diffstat (limited to 'src/greeting.cc')
-rw-r--r-- | src/greeting.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/greeting.cc b/src/greeting.cc index 95e93c0..d96ab96 100644 --- a/src/greeting.cc +++ b/src/greeting.cc @@ -1,9 +1,10 @@ -/** -------------------------------------------------------------------- +/** * @file greeting.cc * @brief Implementation of the inital greeting. * @author Andreas Aardal Hanssen * @date 2002-2005 - * ----------------------------------------------------------------- **/ + */ + #include "globals.h" #include "iodevice.h" #include "iofactory.h" @@ -11,7 +12,6 @@ #include <time.h> -using namespace ::std; using namespace Binc; static const unsigned int ISO8601SIZE = 32; @@ -20,12 +20,10 @@ namespace Binc { void showGreeting(void); }; -//------------------------------------------------------------------------ void Binc::showGreeting(void) { Session &session = Session::getInstance(); - - time_t t = time(0); + time_t t = time(nullptr); struct tm *mytm = localtime(&t); char mytime[ISO8601SIZE]; @@ -34,8 +32,8 @@ void Binc::showGreeting(void) if (session.hasEnv("VERBOSE_GREETING")) { bincClient << "* OK Welcome to Binc IMAP " << BINC_VERSION << " " << IMAP_VERSION - << " by Andreas Aardal Hanssen & Erwin Hoffmann at " << mytime << endl; + << " by Andreas Aardal Hanssen & Erwin Hoffmann at " << mytime << std::endl; } else { - bincClient << "* OK Welcome to Binc IMAP at " << mytime << endl; + bincClient << "* OK Welcome to Binc IMAP at " << mytime << std::endl; } } |