diff options
Diffstat (limited to 'lib/IRC.cc')
-rw-r--r-- | lib/IRC.cc | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -196,9 +196,9 @@ bool IRC::Connect() { } int IRC::Parse(const String & line) { - if (!strcmp(line.to_charp(0, 3), "PING")) { - sock << "PONG" << line.to_charp(4) << endhl; - cerr << "PING/PONG" << line.to_charp(4) << endhl; + if (line.extract(0, 3) == "PING") { + sock << "PONG" << line.extract(4) << endhl; + cerr << "PING/PONG" << line.extract(4) << endhl; return 0; } @@ -215,7 +215,7 @@ void IRC::MainLoop() { cerr << "Trying the login sequence..." << endl; sock << "NICK " << nick << endhl; sock << "USER " << user << " 8 * :" << name << endhl; - sock << "JOIN #phear.org dede" << endhl; +// sock << "JOIN #linuxdjeunz" << endhl; loginsequence = 0; } sock >> line; @@ -225,7 +225,7 @@ void IRC::MainLoop() { } if (count == 20) { - sock << "JOIN #phear.org dede" << endhl; + sock << "JOIN #linuxdjeunz" << endhl; } count++; |