X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2FUserClient.c;h=1b075069ccc2fd7f8aa2b2c7c2f98109594e6c22;hb=79b5ee62665a460214046003cdbe1b4b4f1fa39e;hp=bb43793981b87fa6fdadf84f9d64aa5670fd2085;hpb=93381f41151945656be8f31cdae882e90af05c75;p=TransparentIRC.git diff --git a/src/UserClient.c b/src/UserClient.c index bb43793..1b07506 100644 --- a/src/UserClient.c +++ b/src/UserClient.c @@ -27,7 +27,7 @@ static struct UserClient *userclients = NULL; void userclient_accepted(struct ServerSocket *server, int sockfd) { struct UserClient *client; - struct IODescriptor *iofd = iohandler_add(sockfd, IOTYPE_CLIENT, userclient_callback); + struct IODescriptor *iofd = iohandler_add(sockfd, IOTYPE_CLIENT, NULL, userclient_callback); if(!iofd) return; iofd->state = IO_CONNECTED; iofd->read_lines = 1; @@ -112,6 +112,7 @@ static void userclient_recv(struct UserClient *client, char *line) { int argc = parse_line(line, argv, 1); */ + return; } else if(!(client->flags & USERCLIENT_LOGGED_IN)) { struct UserLogin *login = client->user; char *argv[MAXNUMPARAMS];