summaryrefslogtreecommitdiff
path: root/lib/IRC.cc
diff options
context:
space:
mode:
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++;