summaryrefslogtreecommitdiff
path: root/lib/IRC.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2001-10-27 11:15:57 +0000
committerPixel <Pixel>2001-10-27 11:15:57 +0000
commit54e62a566c003363078aa5273a728c0a0657b3a0 (patch)
tree542f106033e7f702feaaba8672873e6244c8baf1 /lib/IRC.cc
parentec2ecbd35bea64c88ab783b06100edc65c418048 (diff)
Reworking on it...
Diffstat (limited to 'lib/IRC.cc')
-rw-r--r--lib/IRC.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/IRC.cc b/lib/IRC.cc
index 8ba15cc..3dfa1d1 100644
--- a/lib/IRC.cc
+++ b/lib/IRC.cc
@@ -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++;