*/
#include <stdlib.h>
-#include <string.h>
#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"
#define PARSE_CLIFLAG_OPONLY 0x01
//include all commands
-#include "cmd_nick.h"
+#include "cmd.h"
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 */
},
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;