Anope IRC Services  Version 1.8
inspircd11.h
Go to the documentation of this file.
1 /* inspircd beta 6 functions
2  *
3  * (C) 2003-2014 Anope Team
4  * Contact us at team@anope.org
5  *
6  * Please read COPYING and README for further details.
7  *
8  * Based on the original code of Epona by Lara.
9  * Based on the original code of Services by Andy Church.
10  *
11  *
12  */
13 
14 /*************************************************************************/
15 
16 #define UMODE_a 0x00000001
17 #define UMODE_h 0x00000002
18 #define UMODE_i 0x00000004
19 #define UMODE_o 0x00000008
20 #define UMODE_r 0x00000010
21 #define UMODE_w 0x00000020
22 #define UMODE_A 0x00000040
23 #define UMODE_g 0x80000000
24 #define UMODE_x 0x40000000
25 
26 #define CMODE_i 0x00000001
27 #define CMODE_m 0x00000002
28 #define CMODE_n 0x00000004
29 #define CMODE_p 0x00000008
30 #define CMODE_s 0x00000010
31 #define CMODE_t 0x00000020
32 #define CMODE_k 0x00000040 /* These two used only by ChanServ */
33 #define CMODE_l 0x00000080
34 #define CMODE_c 0x00000400
35 #define CMODE_A 0x00000800
36 #define CMODE_H 0x00001000
37 #define CMODE_K 0x00002000
38 #define CMODE_L 0x00004000
39 #define CMODE_O 0x00008000
40 #define CMODE_Q 0x00010000
41 #define CMODE_S 0x00020000
42 #define CMODE_V 0x00040000
43 #define CMODE_f 0x00080000
44 #define CMODE_G 0x00100000
45 #define CMODE_C 0x00200000
46 #define CMODE_u 0x00400000
47 #define CMODE_z 0x00800000
48 #define CMODE_N 0x01000000
49 #define CMODE_R 0x00000100 /* Only identified users can join */
50 #define CMODE_r 0x00000200 /* Set for all registered channels */
51 #define CMODE_j 0x02000000
52 
53 #define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
54 
55 void inspircd_set_umode(User * user, int ac, char **av);
56 void inspircd_cmd_svsnoop(char *server, int set);
57 void inspircd_cmd_remove_akill(char *user, char *host);
58 void inspircd_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when);
60 void inspircd_cmd_akill(char *user, char *host, char *who, time_t when,time_t expires, char *reason);
61 void inspircd_cmd_svskill(char *source, char *user, char *buf);
62 void inspircd_cmd_svsmode(User * u, int ac, char **av);
63 void inspircd_cmd_372(char *source, char *msg);
64 void inspircd_cmd_372_error(char *source);
65 void inspircd_cmd_375(char *source);
66 void inspircd_cmd_376(char *source);
67 void inspircd_cmd_nick(char *nick, char *name, char *modes);
68 void inspircd_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes);
69 void inspircd_cmd_mode(char *source, char *dest, char *buf);
70 void inspircd_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes);
71 void inspircd_cmd_kick(char *source, char *chan, char *user, char *buf);
72 void inspircd_cmd_notice_ops(char *source, char *dest, char *buf);
73 void inspircd_cmd_notice(char *source, char *dest, char *buf);
74 void inspircd_cmd_notice2(char *source, char *dest, char *msg);
75 void inspircd_cmd_privmsg(char *source, char *dest, char *buf);
76 void inspircd_cmd_privmsg2(char *source, char *dest, char *msg);
77 void inspircd_cmd_serv_notice(char *source, char *dest, char *msg);
78 void inspircd_cmd_serv_privmsg(char *source, char *dest, char *msg);
79 void inspircd_cmd_bot_chan_mode(char *nick, char *chan);
80 void inspircd_cmd_351(char *source);
81 void inspircd_cmd_quit(char *source, char *buf);
82 void inspircd_cmd_pong(char *servname, char *who);
83 void inspircd_cmd_join(char *user, char *channel, time_t chantime);
84 void inspircd_cmd_unsqline(char *user);
85 void inspircd_cmd_invite(char *source, char *chan, char *nick);
86 void inspircd_cmd_part(char *nick, char *chan, char *buf);
87 void inspircd_cmd_391(char *source, char *timestr);
88 void inspircd_cmd_250(char *buf);
89 void inspircd_cmd_307(char *buf);
90 void inspircd_cmd_311(char *buf);
91 void inspircd_cmd_312(char *buf);
92 void inspircd_cmd_317(char *buf);
93 void inspircd_cmd_219(char *source, char *letter);
94 void inspircd_cmd_401(char *source, char *who);
95 void inspircd_cmd_318(char *source, char *who);
96 void inspircd_cmd_242(char *buf);
97 void inspircd_cmd_243(char *buf);
98 void inspircd_cmd_211(char *buf);
99 void inspircd_cmd_global(char *source, char *buf);
100 void inspircd_cmd_global_legacy(char *source, char *fmt);
101 void inspircd_cmd_sqline(char *mask, char *reason);
102 void inspircd_cmd_squit(char *servname, char *message);
103 void inspircd_cmd_svso(char *source, char *nick, char *flag);
104 void inspircd_cmd_chg_nick(char *oldnick, char *newnick);
105 void inspircd_cmd_svsnick(char *source, char *guest, time_t when);
106 void inspircd_cmd_vhost_on(char *nick, char *vIdent, char *vhost);
108 void inspircd_cmd_bob();
109 void inspircd_cmd_svshold(char *nick);
110 void inspircd_cmd_release_svshold(char *nick);
111 void inspircd_cmd_unsgline(char *mask);
112 void inspircd_cmd_unszline(char *mask);
113 void inspircd_cmd_szline(char *mask, char *reason, char *whom);
114 void inspircd_cmd_sgline(char *mask, char *reason);
115 void inspircd_cmd_unban(char *name, char *nick);
116 void inspircd_cmd_svsmode_chan(char *name, char *mode, char *nick);
117 void inspircd_cmd_svid_umode(char *nick, time_t ts);
118 void inspircd_cmd_nc_change(User * u);
119 void inspircd_cmd_svid_umode2(User * u, char *ts);
120 void inspircd_cmd_svid_umode3(User * u, char *ts);
121 void inspircd_cmd_eob();
122 void inspircd_cmd_chghost(char *nick, char *vhost);
123 void inspircd_cmd_chgident(char *nick, char *vIdent);
124 int inspircd_flood_mode_check(char *value);
125 void inspircd_cmd_jupe(char *jserver, char *who, char *reason);
126 int inspircd_valid_nick(char *nick);
127 void inspircd_cmd_ctcp(char *source, char *dest, char *buf);
128 int inspircd_jointhrottle_mode_check(char *value);
129 
130 int anope_event_fjoin(char *source, int ac, char **av);
131 int anope_event_fmode(char *source, int ac, char **av);
132 int anope_event_ftopic(char *source, int ac, char **av);
133 int anope_event_sanick(char *source, int ac, char **av);
134 int anope_event_samode(char *source, int ac, char **av);
135 int anope_event_sajoin(char *source, int ac, char **av);
136 int anope_event_sapart(char *source, int ac, char **av);
137 int anope_event_version(char *source, int ac, char **av);
138 int anope_event_opertype(char *source, int ac, char **av);
139 int anope_event_idle(char* source, int ac, char **av);
140 int anope_event_rsquit(char *source, int ac, char **av);
void inspircd_cmd_squit(char *servname, char *message)
Definition: inspircd11.c:1112
int anope_event_samode(char *source, int ac, char **av)
void inspircd_cmd_svsnick(char *source, char *guest, time_t when)
Definition: inspircd11.c:1137
void inspircd_cmd_part(char *nick, char *chan, char *buf)
Definition: inspircd11.c:954
void inspircd_cmd_211(char *buf)
Definition: inspircd11.c:1081
int inspircd_jointhrottle_mode_check(char *value)
Definition: inspircd11.c:1827
void inspircd_cmd_bob()
Definition: inspircd11.c:1181
void inspircd_cmd_svshold(char *nick)
Definition: inspircd11.c:1652
void inspircd_cmd_nick(char *nick, char *name, char *modes)
Definition: inspircd11.c:613
void inspircd_cmd_401(char *source, char *who)
Definition: inspircd11.c:1042
void inspircd_cmd_375(char *source)
Definition: inspircd11.c:602
int inspircd_flood_mode_check(char *value)
Definition: inspircd11.c:1768
void inspircd_cmd_242(char *buf)
Definition: inspircd11.c:1061
void inspircd_cmd_global_legacy(char *source, char *fmt)
Definition: inspircd11.c:1796
void inspircd_cmd_sqline(char *mask, char *reason)
Definition: inspircd11.c:1101
void inspircd_cmd_svsmode(User *u, int ac, char **av)
Definition: inspircd11.c:581
void inspircd_cmd_notice(char *source, char *dest, char *buf)
Definition: inspircd11.c:811
void inspircd_set_umode(User *user, int ac, char **av)
Definition: inspircd11.c:401
void inspircd_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when)
Definition: inspircd11.c:547
int anope_event_sajoin(char *source, int ac, char **av)
int anope_event_fmode(char *source, int ac, char **av)
Definition: inspircd11.c:684
void inspircd_cmd_ctcp(char *source, char *dest, char *buf)
Definition: inspircd11.c:1812
void inspircd_cmd_bot_chan_mode(char *nick, char *chan)
Definition: inspircd11.c:854
void inspircd_cmd_join(char *user, char *channel, time_t chantime)
Definition: inspircd11.c:903
void inspircd_cmd_svid_umode2(User *u, char *ts)
Definition: inspircd11.c:1720
void inspircd_cmd_307(char *buf)
Definition: inspircd11.c:987
void inspircd_cmd_318(char *source, char *who)
Definition: inspircd11.c:1051
void inspircd_cmd_317(char *buf)
Definition: inspircd11.c:1017
void inspircd_cmd_372(char *source, char *msg)
Definition: inspircd11.c:591
void inspircd_cmd_312(char *buf)
Definition: inspircd11.c:1007
void inspircd_cmd_jupe(char *jserver, char *who, char *reason)
Definition: inspircd11.c:1782
void inspircd_cmd_global(char *source, char *buf)
Definition: inspircd11.c:1091
void inspircd_cmd_243(char *buf)
Definition: inspircd11.c:1071
void inspircd_cmd_release_svshold(char *nick)
Definition: inspircd11.c:1659
void inspircd_cmd_chgident(char *nick, char *vIdent)
Definition: inspircd11.c:931
void inspircd_cmd_serv_notice(char *source, char *dest, char *msg)
Definition: inspircd11.c:843
void inspircd_cmd_invite(char *source, char *chan, char *nick)
Definition: inspircd11.c:944
void inspircd_cmd_219(char *source, char *letter)
Definition: inspircd11.c:1027
void inspircd_cmd_250(char *buf)
Definition: inspircd11.c:977
void inspircd_cmd_unszline(char *mask)
Definition: inspircd11.c:1671
void inspircd_cmd_remove_akill(char *user, char *host)
Definition: inspircd11.c:541
void inspircd_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: inspircd11.c:783
void inspircd_cmd_376(char *source)
Definition: inspircd11.c:608
int anope_event_fjoin(char *source, int ac, char **av)
Definition: inspircd11.c:723
void inspircd_cmd_svsnoop(char *server, int set)
Definition: inspircd11.c:531
void inspircd_cmd_pong(char *servname, char *who)
Definition: inspircd11.c:897
void inspircd_cmd_unban(char *name, char *nick)
Definition: inspircd11.c:1689
void inspircd_cmd_351(char *source)
Definition: inspircd11.c:859
void inspircd_cmd_svso(char *source, char *nick, char *flag)
Definition: inspircd11.c:1122
E int servernum
Definition: extern.h:615
void inspircd_cmd_notice_ops(char *source, char *dest, char *buf)
Definition: inspircd11.c:801
void inspircd_cmd_chg_nick(char *oldnick, char *newnick)
Definition: inspircd11.c:1127
void inspircd_cmd_mode(char *source, char *dest, char *buf)
Definition: inspircd11.c:632
void inspircd_cmd_vhost_off(User *u)
Definition: inspircd11.c:554
int anope_event_rsquit(char *source, int ac, char **av)
Definition: inspircd11.c:1261
void inspircd_cmd_unsqline(char *user)
Definition: inspircd11.c:909
void inspircd_cmd_privmsg(char *source, char *dest, char *buf)
Definition: inspircd11.c:829
int anope_event_idle(char *source, int ac, char **av)
Definition: inspircd11.c:648
void inspircd_cmd_391(char *source, char *timestr)
Definition: inspircd11.c:968
void inspircd_cmd_svsmode_chan(char *name, char *mode, char *nick)
Definition: inspircd11.c:1696
void inspircd_cmd_unsgline(char *mask)
Definition: inspircd11.c:1665
void inspircd_cmd_svid_umode(char *nick, time_t ts)
Definition: inspircd11.c:1704
void inspircd_cmd_eob()
Definition: inspircd11.c:1747
void inspircd_cmd_notice2(char *source, char *dest, char *msg)
Definition: inspircd11.c:824
void inspircd_cmd_kick(char *source, char *chan, char *user, char *buf)
Definition: inspircd11.c:792
int anope_event_sapart(char *source, int ac, char **av)
int inspircd_valid_nick(char *nick)
Definition: inspircd11.c:1801
void inspircd_cmd_privmsg2(char *source, char *dest, char *msg)
Definition: inspircd11.c:838
void inspircd_cmd_svid_umode3(User *u, char *ts)
Definition: inspircd11.c:1727
void inspircd_cmd_quit(char *source, char *buf)
Definition: inspircd11.c:867
void inspircd_cmd_connect(int servernum)
Definition: inspircd11.c:1160
void inspircd_cmd_nc_change(User *u)
Definition: inspircd11.c:1712
int anope_event_version(char *source, int ac, char **av)
Definition: inspircd11.c:643
int anope_event_ftopic(char *source, int ac, char **av)
Definition: inspircd11.c:656
void inspircd_cmd_vhost_on(char *nick, char *vIdent, char *vhost)
Definition: inspircd11.c:1149
int anope_event_opertype(char *source, int ac, char **av)
Definition: inspircd11.c:669
void inspircd_cmd_akill(char *user, char *host, char *who, time_t when, time_t expires, char *reason)
Definition: inspircd11.c:566
void inspircd_cmd_szline(char *mask, char *reason, char *whom)
Definition: inspircd11.c:1677
void inspircd_cmd_serv_privmsg(char *source, char *dest, char *msg)
Definition: inspircd11.c:848
int anope_event_sanick(char *source, int ac, char **av)
void inspircd_cmd_372_error(char *source)
Definition: inspircd11.c:596
void inspircd_cmd_chghost(char *nick, char *vhost)
Definition: inspircd11.c:918
void inspircd_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: inspircd11.c:625
void inspircd_cmd_sgline(char *mask, char *reason)
Definition: inspircd11.c:1684
void inspircd_cmd_svskill(char *source, char *user, char *buf)
Definition: inspircd11.c:573
void inspircd_cmd_311(char *buf)
Definition: inspircd11.c:997