X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fircd_parse.c;h=54cdad20ef102d82455ea184b09d5f81b177a44f;hb=ffef7816a745964e42bbf7409975b127bb454152;hp=1bfa8b78fbf482a29f47f372bff1b6491c2ed7f6;hpb=e17a8a5dc929df2a5ae6169f1955fcde7c70e04b;p=NextIRCd.git diff --git a/src/ircd_parse.c b/src/ircd_parse.c index 1bfa8b7..54cdad2 100644 --- a/src/ircd_parse.c +++ b/src/ircd_parse.c @@ -16,12 +16,10 @@ */ #include -#include #include "tools.h" #include "IOHandler/IOSockets.h" #include "ircd_parse.h" -struct Server; #include "struct_client.h" #include "struct_auth.h" #include "struct_servermsg.h" @@ -35,7 +33,7 @@ static struct ServerMsg parse_static_srvmsg; #define PARSE_CLIFLAG_OPONLY 0x01 //include all commands -#include "cmd_nick.h" +#include "cmd.h" struct { @@ -79,8 +77,8 @@ struct { {NULL, 0, 1, 0} /* Server */ }, {{"USER", "U"}, /* User Command */ - {NULL, 0, 1, 0}, /* Client */ - {NULL, 0, 1, 0}, /* Unauthed */ + {cmd_user_cli, 4, 4, 0}, /* Client */ + {cmd_user_auth, 4, 1, 0}, /* Unauthed */ {NULL, 0, 1, 0} /* Server */ }, @@ -283,7 +281,7 @@ void parse_server_data(struct Server *server, struct IOSocketBuffer *buffer) { goto parse_server_data_finish; } - srvmsg->arglen = srvmsg->msglen - (buf - (unsigned char *)buffer->buffer); + srvmsg->arglen = srvmsg->msglen - (buf - (unsigned char*)buffer->buffer); srvmsg->args = buf; int found = 0;