Mercurial > cabal
diff sources/connection.cpp @ 7:8d54d9fdeca3
fixed comments
removed daemonization verbose
strings' size() -> length()
| author | Vlad Glagolev <enqlave@gmail.com> |
|---|---|
| date | Sun, 03 Feb 2008 21:29:41 +0300 |
| parents | 9be05a31b7f9 |
| children |
line wrap: on
line diff
--- a/sources/connection.cpp Sun Jan 27 17:23:14 2008 +0300 +++ b/sources/connection.cpp Sun Feb 03 21:29:41 2008 +0300 @@ -1,5 +1,4 @@ -/** - * connection.cpp (2007-04-12) +/** connection.cpp (2007-04-12) * * -- CABAL -- connection base (servers usage) * @@ -34,12 +33,14 @@ uptime = 0; - cout << "CONNECTION: opening...\n"; + if (CABAL->debug) + cout << "CONNECTION: opening...\n"; } Connection::~Connection() { - cout << "CONNECTION: closed\n"; + if (CABAL->debug) + cout << "CONNECTION: closed\n"; } void Connection::ircConnect() @@ -48,7 +49,8 @@ shut("no hosts defined"); if (!connected && !connecting) { - cout << "CONNECTION: connecting to server: " << current->host << endl; + if (CABAL->debug) + cout << "CONNECTION: connecting to server: " << current->host << endl; if (!resolveHost(current->host, &address)) { cout << "Error: unable to resolve host " << current->host << endl;
