projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
15d3e66
)
use putsock function instead of iohandler functions for login commands (PASS, USER...
author
pk910
<philipp@zoelle1.de>
Tue, 11 Sep 2012 19:22:31 +0000
(21:22 +0200)
committer
pk910
<philipp@zoelle1.de>
Tue, 11 Sep 2012 19:22:31 +0000
(21:22 +0200)
src/ClientSocket.c
patch
|
blob
|
history
diff --git
a/src/ClientSocket.c
b/src/ClientSocket.c
index eaf43d46991b213ebc1021de875f21bfa74e53c1..3be703765123bcbe931f7dd5c03ffa2f174da235 100644
(file)
--- a/
src/ClientSocket.c
+++ b/
src/ClientSocket.c
@@
-226,9
+226,9
@@
static IOHANDLER_CALLBACK(socket_callback) {
case IOEVENT_CONNECTED:
client->flags |= SOCKET_FLAG_CONNECTED;
if(client->pass && strcmp(client->pass, ""))
case IOEVENT_CONNECTED:
client->flags |= SOCKET_FLAG_CONNECTED;
if(client->pass && strcmp(client->pass, ""))
-
iohandler_printf(event->iofd
, "PASS :%s", client->pass);
-
iohandler_printf(event->iofd
, "USER %s 0 0 :%s", client->ident, client->realname);
-
iohandler_printf(event->iofd
, "NICK %s", client->nick);
+
putsock(client
, "PASS :%s", client->pass);
+
putsock(client
, "USER %s 0 0 :%s", client->ident, client->realname);
+
putsock(client
, "NICK %s", client->nick);
break;
case IOEVENT_NOTCONNECTED:
case IOEVENT_CLOSED:
break;
case IOEVENT_NOTCONNECTED:
case IOEVENT_CLOSED: