]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/proto.h
nickserv: support auto_admin and auto_oper for login-on-connect
[irc/evilnet/x3.git] / src / proto.h
index c892d9bf7b64ddc8d46a8b112c6a260b0e6ed2e7..7cf7d66e67fa405f052ba7bbca1ffd3b4c174ef7 100644 (file)
@@ -5,7 +5,7 @@
  *
  * x3 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 2 of the License, or
+ * 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,
@@ -94,6 +94,9 @@ struct userNode* GetUserN(const char *numeric);
 void init_parse(void);
 int parse_line(char *line, int recursive);
 
+char *client_report_privs(struct userNode *client);
+int check_priv(char *priv);
+
 /* Callback notifications for protocol support. */
 typedef void (*chanmsg_func_t) (struct userNode *user, struct chanNode *chan, char *text, struct userNode *bot);
 void reg_chanmsg_func(unsigned char prefix, struct userNode *service, chanmsg_func_t handler);
@@ -122,12 +125,16 @@ void irc_ping(const char *something);
 void irc_pong(const char *who, const char *data);
 void irc_quit(struct userNode *user, const char *message);
 void irc_squit(struct server *srv, const char *message, const char *service_message);
+void irc_squit_route(struct server *srv, const char *message, ...);
+void irc_connect(struct userNode *user, char *server, unsigned int port, struct server *target);
 
 /* messages */
 void irc_privmsg(struct userNode *from, const char *to, const char *message);
 void irc_notice(struct userNode *from, const char *to, const char *message);
 void irc_notice_user(struct userNode *from, struct userNode *to, const char *message);
+void irc_version_user(struct userNode *from, struct userNode *to);
 void irc_wallchops(struct userNode *from, const char *to, const char *message);
+void irc_wallops(const char *format, ...);
 
 /* channel maintenance */
 void irc_join(struct userNode *who, struct chanNode *what);
@@ -138,6 +145,9 @@ void irc_kick(struct userNode *who, struct userNode *target, struct chanNode *fr
 void irc_part(struct userNode *who, struct chanNode *what, const char *reason);
 void irc_topic(struct userNode *service, struct userNode *who, struct chanNode *what, const char *topic);
 void irc_fetchtopic(struct userNode *from, const char *to);
+void irc_svsjoin(struct userNode *from, struct userNode *who, struct chanNode *to);
+void irc_svspart(struct userNode *from, struct userNode *who, struct chanNode *to);
+void irc_svsquit(struct userNode *from, struct userNode *who, char *reason);
 
 /* network maintenance */
 void irc_silence(struct userNode *who, const char *mask, int add);
@@ -151,6 +161,8 @@ void irc_kill(struct userNode *from, struct userNode *target, const char *messag
 void irc_raw(const char *what);
 void irc_stats(struct userNode *from, struct server *target, char type);
 void irc_svsnick(struct userNode *from, struct userNode *target, const char *newnick);
+void irc_swhois(struct userNode *from, struct userNode *target, const char *message);
+void irc_privs(struct userNode *target, char *flag, int add);
 
 /* account maintenance */
 void irc_rename(struct userNode *user, const char *new_handle);
@@ -158,6 +170,8 @@ void irc_delete(struct userNode *user);
 void irc_account(struct userNode *user, const char *stamp, time_t timestamp);
 void irc_regnick(struct userNode *user);
 void irc_fakehost(struct userNode *user, const char *host);
+void irc_mark(struct userNode *user, char *mark);
+void irc_sno(unsigned int mask, char const* format, ...);
 
 /* numeric messages */
 void irc_numeric(struct userNode *user, unsigned int num, const char *format, ...);