diff options
| author | Pixel <Pixel> | 2001-10-27 11:15:57 +0000 | 
|---|---|---|
| committer | Pixel <Pixel> | 2001-10-27 11:15:57 +0000 | 
| commit | 54e62a566c003363078aa5273a728c0a0657b3a0 (patch) | |
| tree | 542f106033e7f702feaaba8672873e6244c8baf1 /lib/IRC.cc | |
| parent | ec2ecbd35bea64c88ab783b06100edc65c418048 (diff) | |
Reworking on it...
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++; | 
