+/* IRCParser.h - NeonServ v5.6
+ * Copyright (C) 2011-2012 Philipp Kreil (pk910)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
#ifndef _IRCParser_h
#define _IRCParser_h
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))
+#define IRC_CMD(NAME) int NAME(struct ClientSocket *client, UNUSED_ARG(char *from), UNUSED_ARG(char **argv), UNUSED_ARG(unsigned int argc))
typedef IRC_CMD(irc_cmd_t);
struct irc_cmd {
struct irc_cmd *next;
};
-int parse_lines(struct ClientSocket *client, char *lines, int len);
+#ifndef DND_FUNCTIONS
+extern int statistics_privmsg;
+extern int statistics_network_users;
+extern int statistics_network_channels;
+
+void parse_line(struct ClientSocket *client, char *line);
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
+/* MODULAR ACCESSIBLE */ void reply(struct ClientSocket *client, struct UserNode *user, const char *text, ...);
+/* MODULAR ACCESSIBLE */ char* merge_argv(char **argv, int start, int end);
+/* MODULAR ACCESSIBLE */ char* merge_argv_char(char **argv, int start, int end, char seperator);
+#endif
+#endif