diff options
Diffstat (limited to 'src/greeting.cc')
-rw-r--r-- | src/greeting.cc | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/greeting.cc b/src/greeting.cc index 3a2a394..95e93c0 100644 --- a/src/greeting.cc +++ b/src/greeting.cc @@ -4,12 +4,12 @@ * @author Andreas Aardal Hanssen * @date 2002-2005 * ----------------------------------------------------------------- **/ -#include <time.h> - +#include "globals.h" #include "iodevice.h" #include "iofactory.h" #include "session.h" -#include "globals.h" + +#include <time.h> using namespace ::std; using namespace Binc; @@ -20,7 +20,6 @@ namespace Binc { void showGreeting(void); }; - //------------------------------------------------------------------------ void Binc::showGreeting(void) { @@ -31,16 +30,11 @@ void Binc::showGreeting(void) char mytime[ISO8601SIZE]; unsigned int size = strftime(mytime, sizeof(mytime), "%Y-%m-%d %H:%M:%S %z", mytm); - if (size >= sizeof(mytime) || size == 0) - mytime[0] = 0; + if (size >= sizeof(mytime) || size == 0) mytime[0] = 0; if (session.hasEnv("VERBOSE_GREETING")) { - bincClient << "* OK Welcome to Binc IMAP " - << BINC_VERSION - << " " - << IMAP_VERSION - << " by Andreas Aardal Hanssen & Erwin Hoffmann at " - << mytime << endl; + bincClient << "* OK Welcome to Binc IMAP " << BINC_VERSION << " " << IMAP_VERSION + << " by Andreas Aardal Hanssen & Erwin Hoffmann at " << mytime << endl; } else { bincClient << "* OK Welcome to Binc IMAP at " << mytime << endl; } |