inspircd11.h

Go to the documentation of this file.
00001 /* inspircd beta 6 functions
00002  *
00003  * (C) 2003-2013 Anope Team
00004  * Contact us at team@anope.org
00005  *
00006  * Please read COPYING and README for further details.
00007  *
00008  * Based on the original code of Epona by Lara.
00009  * Based on the original code of Services by Andy Church. 
00010  * 
00011  *
00012  */
00013 
00014 /*************************************************************************/
00015 
00016 #define UMODE_a 0x00000001
00017 #define UMODE_h 0x00000002
00018 #define UMODE_i 0x00000004
00019 #define UMODE_o 0x00000008
00020 #define UMODE_r 0x00000010
00021 #define UMODE_w 0x00000020
00022 #define UMODE_A 0x00000040
00023 #define UMODE_g 0x80000000
00024 #define UMODE_x 0x40000000
00025 
00026 #define CMODE_i 0x00000001
00027 #define CMODE_m 0x00000002
00028 #define CMODE_n 0x00000004
00029 #define CMODE_p 0x00000008
00030 #define CMODE_s 0x00000010
00031 #define CMODE_t 0x00000020
00032 #define CMODE_k 0x00000040              /* These two used only by ChanServ */
00033 #define CMODE_l 0x00000080
00034 #define CMODE_c 0x00000400
00035 #define CMODE_A 0x00000800
00036 #define CMODE_H 0x00001000
00037 #define CMODE_K 0x00002000
00038 #define CMODE_L 0x00004000
00039 #define CMODE_O 0x00008000
00040 #define CMODE_Q 0x00010000
00041 #define CMODE_S 0x00020000
00042 #define CMODE_V 0x00040000
00043 #define CMODE_f 0x00080000
00044 #define CMODE_G 0x00100000
00045 #define CMODE_C 0x00200000
00046 #define CMODE_u 0x00400000
00047 #define CMODE_z 0x00800000
00048 #define CMODE_N 0x01000000
00049 #define CMODE_R 0x00000100              /* Only identified users can join */
00050 #define CMODE_r 0x00000200              /* Set for all registered channels */
00051 #define CMODE_j 0x02000000
00052 
00053 #define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
00054 
00055 void inspircd_set_umode(User * user, int ac, char **av);
00056 void inspircd_cmd_svsnoop(char *server, int set);
00057 void inspircd_cmd_remove_akill(char *user, char *host);
00058 void inspircd_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when);
00059 void inspircd_cmd_vhost_off(User * u);
00060 void inspircd_cmd_akill(char *user, char *host, char *who, time_t when,time_t expires, char *reason);
00061 void inspircd_cmd_svskill(char *source, char *user, char *buf);
00062 void inspircd_cmd_svsmode(User * u, int ac, char **av);
00063 void inspircd_cmd_372(char *source, char *msg);
00064 void inspircd_cmd_372_error(char *source);
00065 void inspircd_cmd_375(char *source);
00066 void inspircd_cmd_376(char *source);
00067 void inspircd_cmd_nick(char *nick, char *name, char *modes);
00068 void inspircd_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes);
00069 void inspircd_cmd_mode(char *source, char *dest, char *buf);
00070 void inspircd_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes);
00071 void inspircd_cmd_kick(char *source, char *chan, char *user, char *buf);
00072 void inspircd_cmd_notice_ops(char *source, char *dest, char *buf);
00073 void inspircd_cmd_notice(char *source, char *dest, char *buf);
00074 void inspircd_cmd_notice2(char *source, char *dest, char *msg);
00075 void inspircd_cmd_privmsg(char *source, char *dest, char *buf);
00076 void inspircd_cmd_privmsg2(char *source, char *dest, char *msg);
00077 void inspircd_cmd_serv_notice(char *source, char *dest, char *msg);
00078 void inspircd_cmd_serv_privmsg(char *source, char *dest, char *msg);
00079 void inspircd_cmd_bot_chan_mode(char *nick, char *chan);
00080 void inspircd_cmd_351(char *source);
00081 void inspircd_cmd_quit(char *source, char *buf);
00082 void inspircd_cmd_pong(char *servname, char *who);
00083 void inspircd_cmd_join(char *user, char *channel, time_t chantime);
00084 void inspircd_cmd_unsqline(char *user);
00085 void inspircd_cmd_invite(char *source, char *chan, char *nick);
00086 void inspircd_cmd_part(char *nick, char *chan, char *buf);
00087 void inspircd_cmd_391(char *source, char *timestr);
00088 void inspircd_cmd_250(char *buf);
00089 void inspircd_cmd_307(char *buf);
00090 void inspircd_cmd_311(char *buf);
00091 void inspircd_cmd_312(char *buf);
00092 void inspircd_cmd_317(char *buf);
00093 void inspircd_cmd_219(char *source, char *letter);
00094 void inspircd_cmd_401(char *source, char *who);
00095 void inspircd_cmd_318(char *source, char *who);
00096 void inspircd_cmd_242(char *buf);
00097 void inspircd_cmd_243(char *buf);
00098 void inspircd_cmd_211(char *buf);
00099 void inspircd_cmd_global(char *source, char *buf);
00100 void inspircd_cmd_global_legacy(char *source, char *fmt);
00101 void inspircd_cmd_sqline(char *mask, char *reason);
00102 void inspircd_cmd_squit(char *servname, char *message);
00103 void inspircd_cmd_svso(char *source, char *nick, char *flag);
00104 void inspircd_cmd_chg_nick(char *oldnick, char *newnick);
00105 void inspircd_cmd_svsnick(char *source, char *guest, time_t when);
00106 void inspircd_cmd_vhost_on(char *nick, char *vIdent, char *vhost);
00107 void inspircd_cmd_connect(int servernum);
00108 void inspircd_cmd_bob();
00109 void inspircd_cmd_svshold(char *nick);
00110 void inspircd_cmd_release_svshold(char *nick);
00111 void inspircd_cmd_unsgline(char *mask);
00112 void inspircd_cmd_unszline(char *mask);
00113 void inspircd_cmd_szline(char *mask, char *reason, char *whom);
00114 void inspircd_cmd_sgline(char *mask, char *reason);
00115 void inspircd_cmd_unban(char *name, char *nick);
00116 void inspircd_cmd_svsmode_chan(char *name, char *mode, char *nick);
00117 void inspircd_cmd_svid_umode(char *nick, time_t ts);
00118 void inspircd_cmd_nc_change(User * u);
00119 void inspircd_cmd_svid_umode2(User * u, char *ts);
00120 void inspircd_cmd_svid_umode3(User * u, char *ts);
00121 void inspircd_cmd_eob();
00122 void inspircd_cmd_chghost(char *nick, char *vhost);
00123 void inspircd_cmd_chgident(char *nick, char *vIdent);
00124 int inspircd_flood_mode_check(char *value);
00125 void inspircd_cmd_jupe(char *jserver, char *who, char *reason);
00126 int inspircd_valid_nick(char *nick);
00127 void inspircd_cmd_ctcp(char *source, char *dest, char *buf);
00128 int inspircd_jointhrottle_mode_check(char *value);
00129 
00130 int anope_event_fjoin(char *source, int ac, char **av);
00131 int anope_event_fmode(char *source, int ac, char **av);
00132 int anope_event_ftopic(char *source, int ac, char **av);
00133 int anope_event_sanick(char *source, int ac, char **av);
00134 int anope_event_samode(char *source, int ac, char **av);
00135 int anope_event_sajoin(char *source, int ac, char **av);
00136 int anope_event_sapart(char *source, int ac, char **av);
00137 int anope_event_version(char *source, int ac, char **av);
00138 int anope_event_opertype(char *source, int ac, char **av);
00139 int anope_event_idle(char* source, int ac, char **av);
00140 int anope_event_rsquit(char *source, int ac, char **av);