X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=IRCParser.h;h=ac2b376612a6dd0b14027381c0cc19a12f73f72f;hb=795115bf680185ae01043bd1222b78bfed8c1d87;hp=1425f57dc86678b8b9bb0852a3b8ac7e34771088;hpb=f3fba85a013cd814b49715965cb654978faa5946;p=NeonServV5.git diff --git a/IRCParser.h b/IRCParser.h index 1425f57..ac2b376 100644 --- a/IRCParser.h +++ b/IRCParser.h @@ -2,9 +2,9 @@ #define _IRCParser_h #include "main.h" -#include "ClientSocket.h" -#define MAXNUMPARAMS 200 /* maximum number of parameters in one line */ +struct ClientSocket; +struct UserNode; #define IRC_CMD(NAME) int NAME(struct ClientSocket *client, UNUSED_ARG(const char *from), UNUSED_ARG(char **argv), UNUSED_ARG(unsigned int argc)) typedef IRC_CMD(irc_cmd_t); @@ -19,5 +19,8 @@ int parse_lines(struct ClientSocket *client, char *lines, int len); void bot_disconnect(struct ClientSocket *client); void init_parser(); void free_parser(); +void reply(struct ClientSocket *client, struct UserNode *user, const char *text, ...); +char* merge_argv(char **argv, int start, int end); +char* merge_argv_char(char **argv, int start, int end, char seperator); #endif \ No newline at end of file