projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ba240e4
)
removed previously added debug output & fixed PING reply (PONG)
author
pk910
<philipp@zoelle1.de>
Wed, 10 Aug 2011 00:44:33 +0000
(
02:44
+0200)
committer
pk910
<philipp@zoelle1.de>
Wed, 10 Aug 2011 00:44:33 +0000
(
02:44
+0200)
ClientSocket.c
patch
|
blob
|
history
IRCParser.c
patch
|
blob
|
history
diff --git
a/ClientSocket.c
b/ClientSocket.c
index c071e1cfbd31db235a34a39037d8694dbe16d089..20ec7246a92af4bf506fc6fa59db7bcf986f2946 100644
(file)
--- a/
ClientSocket.c
+++ b/
ClientSocket.c
@@
-147,13
+147,9
@@
void socket_loop(int timeout_seconds) {
sock->buffer[sock->bufferpos + i] = buffer[i];
}
sock->bufferpos += i;
sock->buffer[sock->bufferpos + i] = buffer[i];
}
sock->bufferpos += i;
- sock->buffer[sock->bufferpos] = 0; //debug only
- printf("BUFFER: %s\n", sock->buffer);
}
} else {
bytes = read(sock->sock, sock->buffer, sizeof(sock->buffer));
}
} else {
bytes = read(sock->sock, sock->buffer, sizeof(sock->buffer));
- sock->buffer[bytes] = 0; //debug only
- printf("BUFFER: %s\n", sock->buffer);
if(bytes > 0)
sock->bufferpos = bytes;
}
if(bytes > 0)
sock->bufferpos = bytes;
}
diff --git
a/IRCParser.c
b/IRCParser.c
index 187aeb6475263af61b46dd3110ab570a99cf17b3..622cd8a67f1b6c2d2039c6fb027885b40836abd5 100644
(file)
--- a/
IRCParser.c
+++ b/
IRCParser.c
@@
-81,7
+81,7
@@
static IRC_CMD(raw_001) {
static IRC_CMD(raw_ping) {
if(argc == 0) return 0;
static IRC_CMD(raw_ping) {
if(argc == 0) return 0;
- putsock(client, "PO
M
G :%s", argv[0]);
+ putsock(client, "PO
N
G :%s", argv[0]);
return 1;
}
return 1;
}