Anope IRC Services  Version 1.8
Go to the documentation of this file.
1 /* ShadowIRCD functions
2  *
3  * (C) 2003-2014 Anope Team
4  * Contact us at
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  */
14 /* The protocol revision. */
15 #define PROTOCOL_REVISION 3402
18 #define UMODE_a 0x00000001
19 #define UMODE_C 0x00000002
20 #define UMODE_i 0x00000004
21 #define UMODE_o 0x00000008
22 #define UMODE_z 0x00000010
23 #define UMODE_w 0x00000020
24 #define UMODE_s 0x00000040
25 #define UMODE_c 0x00000080
26 #define UMODE_r 0x00000100
27 #define UMODE_k 0x00000200
28 #define UMODE_f 0x00000400
29 #define UMODE_y 0x00000800
30 #define UMODE_d 0x00001000
31 #define UMODE_n 0x00002000
32 #define UMODE_x 0x00004000
33 #define UMODE_u 0x00008000
34 #define UMODE_b 0x00010000
35 #define UMODE_l 0x00020000
36 #define UMODE_g 0x00040000
37 #define UMODE_v 0x00080000
38 #define UMODE_A 0x00100000
39 #define UMODE_E 0x00200000
40 #define UMODE_G 0x00400000
41 #define UMODE_R 0x00800000
42 #define UMODE_e 0x01000000
43 #define UMODE_O 0x02000000
44 #define UMODE_H 0x04000000
46 #define CMODE_i 0x00000001
47 #define CMODE_m 0x00000002
48 #define CMODE_n 0x00000004
49 #define CMODE_p 0x00000008
50 #define CMODE_s 0x00000010
51 #define CMODE_t 0x00000020
52 #define CMODE_k 0x00000040
53 #define CMODE_l 0x00000080
54 #define CMODE_K 0x00000100
55 #define CMODE_A 0x00000200
56 #define CMODE_r 0x00000400
57 #define CMODE_z 0x00000800
58 #define CMODE_S 0x00001000
59 #define CMODE_c 0x00002000
60 #define CMODE_E 0x00004000
61 #define CMODE_F 0x00008000
62 #define CMODE_G 0x00010000
63 #define CMODE_L 0x00020000
64 #define CMODE_N 0x00040000
65 #define CMODE_O 0x00080000
66 #define CMODE_P 0x00100000
67 #define CMODE_R 0x00200000
68 #define CMODE_T 0x00400000
69 #define CMODE_V 0x00800000
73 void shadowircd_set_umode(User * user, int ac, char **av);
74 void shadowircd_cmd_svsnoop(char *server, int set);
75 void shadowircd_cmd_remove_akill(char *user, char *host);
76 void shadowircd_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when);
78 void shadowircd_cmd_akill(char *user, char *host, char *who, time_t when,time_t expires, char *reason);
79 void shadowircd_cmd_svskill(char *source, char *user, char *buf);
80 void shadowircd_cmd_svsmode(User * u, int ac, char **av);
81 void shadowircd_cmd_372(char *source, char *msg);
82 void shadowircd_cmd_372_error(char *source);
83 void shadowircd_cmd_375(char *source);
84 void shadowircd_cmd_376(char *source);
85 void shadowircd_cmd_nick(char *nick, char *name, char *modes);
86 void shadowircd_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes);
87 void shadowircd_cmd_mode(char *source, char *dest, char *buf);
88 void shadowircd_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes);
89 void shadowircd_cmd_kick(char *source, char *chan, char *user, char *buf);
90 void shadowircd_cmd_notice_ops(char *source, char *dest, char *buf);
91 void shadowircd_cmd_notice(char *source, char *dest, char *buf);
92 void shadowircd_cmd_notice2(char *source, char *dest, char *msg);
93 void shadowircd_cmd_privmsg(char *source, char *dest, char *buf);
94 void shadowircd_cmd_privmsg2(char *source, char *dest, char *msg);
95 void shadowircd_cmd_serv_notice(char *source, char *dest, char *msg);
96 void shadowircd_cmd_serv_privmsg(char *source, char *dest, char *msg);
97 void shadowircd_cmd_bot_chan_mode(char *nick, char *chan);
98 void shadowircd_cmd_351(char *source);
99 void shadowircd_cmd_quit(char *source, char *buf);
100 void shadowircd_cmd_pong(char *servname, char *who);
101 void shadowircd_cmd_join(char *user, char *channel, time_t chantime);
102 void shadowircd_cmd_unsqline(char *user);
103 void shadowircd_cmd_invite(char *source, char *chan, char *nick);
104 void shadowircd_cmd_part(char *nick, char *chan, char *buf);
105 void shadowircd_cmd_391(char *source, char *timestr);
106 void shadowircd_cmd_250(char *buf);
107 void shadowircd_cmd_307(char *buf);
108 void shadowircd_cmd_311(char *buf);
109 void shadowircd_cmd_312(char *buf);
110 void shadowircd_cmd_317(char *buf);
111 void shadowircd_cmd_219(char *source, char *letter);
112 void shadowircd_cmd_401(char *source, char *who);
113 void shadowircd_cmd_318(char *source, char *who);
114 void shadowircd_cmd_242(char *buf);
115 void shadowircd_cmd_243(char *buf);
116 void shadowircd_cmd_211(char *buf);
117 void shadowircd_cmd_global(char *source, char *buf);
118 void shadowircd_cmd_global_legacy(char *source, char *fmt);
119 void shadowircd_cmd_sqline(char *mask, char *reason);
120 void shadowircd_cmd_squit(char *servname, char *message);
121 void shadowircd_cmd_svso(char *source, char *nick, char *flag);
122 void shadowircd_cmd_chg_nick(char *oldnick, char *newnick);
123 void shadowircd_cmd_svsnick(char *source, char *guest, time_t when);
124 void shadowircd_cmd_vhost_on(char *nick, char *vIdent, char *vhost);
126 void shadowircd_cmd_bob();
127 void shadowircd_cmd_svshold(char *nick);
128 void shadowircd_cmd_release_svshold(char *nick);
129 void shadowircd_cmd_unsgline(char *mask);
130 void shadowircd_cmd_unszline(char *mask);
131 void shadowircd_cmd_szline(char *mask, char *reason, char *whom);
132 void shadowircd_cmd_sgline(char *mask, char *reason);
133 void shadowircd_cmd_unban(char *name, char *nick);
134 void shadowircd_cmd_svsmode_chan(char *name, char *mode, char *nick);
135 void shadowircd_cmd_svid_umode(char *nick, time_t ts);
137 void shadowircd_cmd_svid_umode2(User * u, char *ts);
138 void shadowircd_cmd_svid_umode3(User * u, char *ts);
139 void shadowircd_cmd_eob();
140 int shadowircd_flood_mode_check(char *value);
141 void shadowircd_cmd_jupe(char *jserver, char *who, char *reason);
142 int shadowircd_valid_nick(char *nick);
143 void shadowircd_cmd_ctcp(char *source, char *dest, char *buf);
void shadowircd_cmd_privmsg(char *source, char *dest, char *buf)
Definition: shadowircd.c:494
void shadowircd_cmd_svid_umode(char *nick, time_t ts)
Definition: shadowircd.c:1544
void shadowircd_cmd_svsnoop(char *server, int set)
Definition: shadowircd.c:840
int shadowircd_valid_nick(char *nick)
Definition: shadowircd.c:1698
void shadowircd_cmd_szline(char *mask, char *reason, char *whom)
Definition: shadowircd.c:835
void shadowircd_cmd_svid_umode2(User *u, char *ts)
Definition: shadowircd.c:1557
void shadowircd_cmd_243(char *buf)
Definition: shadowircd.c:1318
void shadowircd_cmd_nc_change(User *u)
Definition: shadowircd.c:1551
void shadowircd_cmd_akill(char *user, char *host, char *who, time_t when, time_t expires, char *reason)
Definition: shadowircd.c:909
void shadowircd_cmd_svid_umode3(User *u, char *ts)
Definition: shadowircd.c:1562
void shadowircd_cmd_privmsg2(char *source, char *dest, char *msg)
Definition: shadowircd.c:508
void shadowircd_cmd_sqline(char *mask, char *reason)
Definition: shadowircd.c:820
void shadowircd_cmd_mode(char *source, char *dest, char *buf)
Definition: shadowircd.c:1337
void shadowircd_cmd_vhost_off(User *u)
Definition: shadowircd.c:873
void shadowircd_cmd_serv_notice(char *source, char *dest, char *msg)
Definition: shadowircd.c:519
void shadowircd_cmd_squit(char *servname, char *message)
Definition: shadowircd.c:1447
void shadowircd_cmd_376(char *source)
Definition: shadowircd.c:1209
void shadowircd_cmd_global_legacy(char *source, char *fmt)
Definition: shadowircd.c:551
void shadowircd_cmd_svsnick(char *source, char *guest, time_t when)
Definition: shadowircd.c:1511
void shadowircd_cmd_chg_nick(char *oldnick, char *newnick)
Definition: shadowircd.c:1568
void shadowircd_cmd_sgline(char *mask, char *reason)
Definition: shadowircd.c:850
void shadowircd_cmd_join(char *user, char *channel, time_t chantime)
Definition: shadowircd.c:891
void shadowircd_cmd_372(char *source, char *msg)
Definition: shadowircd.c:1191
void shadowircd_cmd_part(char *nick, char *chan, char *buf)
Definition: shadowircd.c:1012
void shadowircd_cmd_unszline(char *mask)
Definition: shadowircd.c:830
void shadowircd_cmd_vhost_on(char *nick, char *vIdent, char *vhost)
Definition: shadowircd.c:878
void shadowircd_cmd_pong(char *servname, char *who)
Definition: shadowircd.c:1424
void shadowircd_cmd_372_error(char *source)
Definition: shadowircd.c:1196
void shadowircd_cmd_242(char *buf)
Definition: shadowircd.c:1308
void shadowircd_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when)
Definition: shadowircd.c:863
void shadowircd_cmd_notice2(char *source, char *dest, char *msg)
Definition: shadowircd.c:483
int shadowircd_flood_mode_check(char *value)
Definition: shadowircd.c:1666
void shadowircd_cmd_quit(char *source, char *buf)
Definition: shadowircd.c:1410
void shadowircd_cmd_312(char *buf)
Definition: shadowircd.c:1254
void shadowircd_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: shadowircd.c:999
void shadowircd_cmd_bot_chan_mode(char *nick, char *chan)
Definition: shadowircd.c:1400
void shadowircd_cmd_eob()
Definition: shadowircd.c:1060
void shadowircd_cmd_invite(char *source, char *chan, char *nick)
Definition: shadowircd.c:1430
void shadowircd_cmd_jupe(char *jserver, char *who, char *reason)
Definition: shadowircd.c:1681
void shadowircd_cmd_notice(char *source, char *dest, char *buf)
Definition: shadowircd.c:464
void shadowircd_cmd_global(char *source, char *buf)
Definition: shadowircd.c:530
void shadowircd_set_umode(User *user, int ac, char **av)
Definition: shadowircd.c:153
void shadowircd_cmd_317(char *buf)
Definition: shadowircd.c:1264
E int servernum
Definition: extern.h:615
void shadowircd_cmd_kick(char *source, char *chan, char *user, char *buf)
Definition: shadowircd.c:1374
void shadowircd_cmd_ctcp(char *source, char *dest, char *buf)
Definition: shadowircd.c:1717
void shadowircd_cmd_serv_privmsg(char *source, char *dest, char *msg)
Definition: shadowircd.c:524
void shadowircd_cmd_401(char *source, char *who)
Definition: shadowircd.c:1289
void shadowircd_cmd_318(char *source, char *who)
Definition: shadowircd.c:1298
void shadowircd_cmd_svso(char *source, char *nick, char *flag)
Definition: shadowircd.c:1525
void shadowircd_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: shadowircd.c:1519
void shadowircd_cmd_311(char *buf)
Definition: shadowircd.c:1244
void shadowircd_cmd_unsqline(char *user)
Definition: shadowircd.c:886
void shadowircd_cmd_250(char *buf)
Definition: shadowircd.c:1224
void shadowircd_cmd_375(char *source)
Definition: shadowircd.c:1203
void shadowircd_cmd_unsgline(char *mask)
Definition: shadowircd.c:825
void shadowircd_cmd_svsmode_chan(char *name, char *mode, char *nick)
Definition: shadowircd.c:1537
void shadowircd_cmd_remove_akill(char *user, char *host)
Definition: shadowircd.c:855
void shadowircd_cmd_351(char *source)
Definition: shadowircd.c:1483
void shadowircd_cmd_connect(int servernum)
Definition: shadowircd.c:978
void shadowircd_cmd_svshold(char *nick)
Definition: shadowircd.c:1499
void shadowircd_cmd_svskill(char *source, char *user, char *buf)
Definition: shadowircd.c:920
void shadowircd_cmd_bob()
Definition: shadowircd.c:994
void shadowircd_cmd_219(char *source, char *letter)
Definition: shadowircd.c:1274
void shadowircd_cmd_nick(char *nick, char *name, char *modes)
Definition: shadowircd.c:1362
void shadowircd_cmd_211(char *buf)
Definition: shadowircd.c:1328
void shadowircd_cmd_release_svshold(char *nick)
Definition: shadowircd.c:1505
void shadowircd_cmd_391(char *source, char *timestr)
Definition: shadowircd.c:1215
void shadowircd_cmd_307(char *buf)
Definition: shadowircd.c:1234
void shadowircd_cmd_unban(char *name, char *nick)
Definition: shadowircd.c:1530
void shadowircd_cmd_notice_ops(char *source, char *dest, char *buf)
Definition: shadowircd.c:1391
void shadowircd_cmd_svsmode(User *u, int ac, char **av)
Definition: shadowircd.c:936