Mercurial > cabal
diff sources/connection.cpp @ 5:0faceb076254
code clean up
added PID to the default Core argument
bool => true|false
| author | Vlad Glagolev <enqlave@gmail.com> |
|---|---|
| date | Thu, 24 Jan 2008 21:00:52 +0300 |
| parents | a7051ac7118b |
| children | 9be05a31b7f9 |
line wrap: on
line diff
--- a/sources/connection.cpp Thu Jan 24 19:38:34 2008 +0300 +++ b/sources/connection.cpp Thu Jan 24 21:00:52 2008 +0300 @@ -45,7 +45,7 @@ void Connection::ircConnect() { if (!current) - shut ("no hosts defined"); + shut("no hosts defined"); if (!connected && !connecting) { cout << "CONNECTION: connecting to server: " << current->host << endl; @@ -117,24 +117,24 @@ sendMsg("AWAY :" + away); } -void Connection::ircJoin(string nchan, string nckey) +void Connection::ircJoin(string chan, string key) { - sendMsg("JOIN " + nchan + (nckey != "" ? " " + nckey : "")); + sendMsg("JOIN " + chan + (key != "" ? " " + key : "")); } -void Connection::ircPart(string nchan) +void Connection::ircPart(string chan) { - sendMsg("PART " + nchan); + sendMsg("PART " + chan); } -void Connection::ircCycle(string nchan) +void Connection::ircCycle(string chan) { - sendMsg("PART " + nchan); - sendMsg("JOIN " + nchan); + sendMsg("PART " + chan); + sendMsg("JOIN " + chan); } -Connection::host_type * - Connection::addHost(host_type *list, pchar host, int port, pchar password) +Connection::host_type *Connection::addHost(host_type *list, pchar host, \ + int port, pchar password) { if (!list) current = list = new host_type(host, port, password);
