Anope IRC Services  Version 1.8
ultimate2.h
Go to the documentation of this file.
1 /* Ultimate IRCD 2 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 #define UMODE_a 0x00000001
15 #define UMODE_h 0x00000002
16 #define UMODE_i 0x00000004
17 #define UMODE_o 0x00000008
18 #define UMODE_r 0x00000010
19 #define UMODE_w 0x00000020
20 #define UMODE_A 0x00000040
21 #define UMODE_p 0x04000000
22 #define UMODE_R 0x08000000
23 #define UMODE_P 0x20000000
24 #define UMODE_g 0x80000000
25 #define UMODE_x 0x40000000
26 
27 
28 #define CMODE_i 0x00000001
29 #define CMODE_m 0x00000002
30 #define CMODE_n 0x00000004
31 #define CMODE_p 0x00000008
32 #define CMODE_s 0x00000010
33 #define CMODE_t 0x00000020
34 #define CMODE_k 0x00000040 /* These two used only by ChanServ */
35 #define CMODE_l 0x00000080
36 #define CMODE_f 0x00000400
37 #define CMODE_x 0x00000800
38 #define CMODE_A 0x00001000
39 #define CMODE_I 0x00002000
40 #define CMODE_K 0x00004000
41 #define CMODE_L 0x00008000
42 #define CMODE_O 0x00010000
43 #define CMODE_S 0x00020000
44 #define CMODE_R 0x00000100 /* Only identified users can join */
45 #define CMODE_r 0x00000200 /* Set for all registered channels */
46 
47 #define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
48 
49 void ultimate2_set_umode(User * user, int ac, char **av);
50 void ultimate2_cmd_svsnoop(char *server, int set);
51 void ultimate2_cmd_remove_akill(char *user, char *host);
52 void ultimate2_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when);
54 void ultimate2_cmd_akill(char *user, char *host, char *who, time_t when,time_t expires, char *reason);
55 void ultimate2_cmd_svskill(char *source, char *user, char *buf);
56 void ultimate2_cmd_svsmode(User * u, int ac, char **av);
57 void ultimate2_cmd_372(char *source, char *msg);
58 void ultimate2_cmd_372_error(char *source);
59 void ultimate2_cmd_375(char *source);
60 void ultimate2_cmd_376(char *source);
61 void ultimate2_cmd_nick(char *nick, char *name, char *modes);
62 void ultimate2_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes);
63 void ultimate2_cmd_mode(char *source, char *dest, char *buf);
64 void ultimate2_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes);
65 void ultimate2_cmd_kick(char *source, char *chan, char *user, char *buf);
66 void ultimate2_cmd_notice_ops(char *source, char *dest, char *buf);
67 void ultimate2_cmd_notice(char *source, char *dest, char *buf);
68 void ultimate2_cmd_notice2(char *source, char *dest, char *msg);
69 void ultimate2_cmd_privmsg(char *source, char *dest, char *buf);
70 void ultimate2_cmd_privmsg2(char *source, char *dest, char *msg);
71 void ultimate2_cmd_serv_notice(char *source, char *dest, char *msg);
72 void ultimate2_cmd_serv_privmsg(char *source, char *dest, char *msg);
73 void ultimate2_cmd_bot_chan_mode(char *nick, char *chan);
74 void ultimate2_cmd_351(char *source);
75 void ultimate2_cmd_quit(char *source, char *buf);
76 void ultimate2_cmd_pong(char *servname, char *who);
77 void ultimate2_cmd_join(char *user, char *channel, time_t chantime);
78 void ultimate2_cmd_unsqline(char *user);
79 void ultimate2_cmd_invite(char *source, char *chan, char *nick);
80 void ultimate2_cmd_part(char *nick, char *chan, char *buf);
81 void ultimate2_cmd_391(char *source, char *timestr);
82 void ultimate2_cmd_250(char *buf);
83 void ultimate2_cmd_307(char *buf);
84 void ultimate2_cmd_311(char *buf);
85 void ultimate2_cmd_312(char *buf);
86 void ultimate2_cmd_317(char *buf);
87 void ultimate2_cmd_219(char *source, char *letter);
88 void ultimate2_cmd_401(char *source, char *who);
89 void ultimate2_cmd_318(char *source, char *who);
90 void ultimate2_cmd_242(char *buf);
91 void ultimate2_cmd_243(char *buf);
92 void ultimate2_cmd_211(char *buf);
93 void ultimate2_cmd_global(char *source, char *buf);
94 void ultimate2_cmd_global_legacy(char *source, char *fmt);
95 void ultimate2_cmd_sqline(char *mask, char *reason);
96 void ultimate2_cmd_squit(char *servname, char *message);
97 void ultimate2_cmd_svso(char *source, char *nick, char *flag);
98 void ultimate2_cmd_chg_nick(char *oldnick, char *newnick);
99 void ultimate2_cmd_svsnick(char *source, char *guest, time_t when);
100 void ultimate2_cmd_vhost_on(char *nick, char *vIdent, char *vhost);
102 void ultimate2_cmd_bob();
103 void ultimate2_cmd_svshold(char *nick);
104 void ultimate2_cmd_release_svshold(char *nick);
105 void ultimate2_cmd_unsgline(char *mask);
106 void ultimate2_cmd_unszline(char *mask);
107 void ultimate2_cmd_szline(char *mask, char *reason, char *whom);
108 void ultimate2_cmd_sgline(char *mask, char *reason);
109 void ultimate2_cmd_unban(char *name, char *nick);
110 void ultimate2_cmd_svsmode_chan(char *name, char *mode, char *nick);
111 void ultimate2_cmd_svid_umode(char *nick, time_t ts);
112 void ultimate2_cmd_nc_change(User * u);
113 void ultimate2_cmd_svid_umode2(User * u, char *ts);
114 void ultimate2_cmd_svid_umode3(User * u, char *ts);
115 void ultimate2_cmd_eob();
116 int ultimate2_flood_mode_check(char *value);
117 void ultimate2_cmd_jupe(char *jserver, char *who, char *reason);
118 int ultimate2_valid_nick(char *nick);
119 void ultimate2_cmd_ctcp(char *source, char *dest, char *buf);
120 
121 
void ultimate2_cmd_bob()
Definition: ultimate2.c:900
void ultimate2_cmd_351(char *source)
Definition: ultimate2.c:1319
void ultimate2_cmd_part(char *nick, char *chan, char *buf)
Definition: ultimate2.c:934
void ultimate2_cmd_375(char *source)
Definition: ultimate2.c:1366
void ultimate2_cmd_svshold(char *nick)
Definition: ultimate2.c:1383
void ultimate2_cmd_szline(char *mask, char *reason, char *whom)
Definition: ultimate2.c:1407
void ultimate2_cmd_376(char *source)
Definition: ultimate2.c:1372
void ultimate2_cmd_242(char *buf)
Definition: ultimate2.c:1041
void ultimate2_cmd_391(char *source, char *timestr)
Definition: ultimate2.c:948
void ultimate2_cmd_svsmode_chan(char *name, char *mode, char *nick)
Definition: ultimate2.c:1434
void ultimate2_cmd_release_svshold(char *nick)
Definition: ultimate2.c:1389
void ultimate2_cmd_211(char *buf)
Definition: ultimate2.c:1061
void ultimate2_cmd_connect(int servernum)
Definition: ultimate2.c:885
void ultimate2_cmd_svsnoop(char *server, int set)
Definition: ultimate2.c:789
void ultimate2_cmd_privmsg(char *source, char *dest, char *buf)
Definition: ultimate2.c:1285
void ultimate2_cmd_squit(char *servname, char *message)
Definition: ultimate2.c:1081
void ultimate2_cmd_global_legacy(char *source, char *fmt)
Definition: ultimate2.c:1585
void ultimate2_cmd_svid_umode(char *nick, time_t ts)
Definition: ultimate2.c:1441
void ultimate2_cmd_311(char *buf)
Definition: ultimate2.c:977
void ultimate2_cmd_eob()
Definition: ultimate2.c:1527
void ultimate2_cmd_akill(char *user, char *host, char *who, time_t when, time_t expires, char *reason)
Definition: ultimate2.c:836
void ultimate2_cmd_chg_nick(char *oldnick, char *newnick)
Definition: ultimate2.c:1101
void ultimate2_cmd_ctcp(char *source, char *dest, char *buf)
Definition: ultimate2.c:1611
void ultimate2_cmd_nick(char *nick, char *name, char *modes)
Definition: ultimate2.c:1309
void ultimate2_cmd_unsgline(char *mask)
Definition: ultimate2.c:1395
void ultimate2_cmd_svso(char *source, char *nick, char *flag)
Definition: ultimate2.c:1091
void ultimate2_cmd_bot_chan_mode(char *nick, char *chan)
Definition: ultimate2.c:1377
void ultimate2_cmd_372_error(char *source)
Definition: ultimate2.c:1360
void ultimate2_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when)
Definition: ultimate2.c:805
void ultimate2_cmd_318(char *source, char *who)
Definition: ultimate2.c:1031
void ultimate2_cmd_privmsg2(char *source, char *dest, char *msg)
Definition: ultimate2.c:1294
void ultimate2_cmd_317(char *buf)
Definition: ultimate2.c:997
void ultimate2_cmd_svid_umode3(User *u, char *ts)
Definition: ultimate2.c:1463
void ultimate2_cmd_219(char *source, char *letter)
Definition: ultimate2.c:1007
void ultimate2_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: ultimate2.c:1418
void ultimate2_cmd_quit(char *source, char *buf)
Definition: ultimate2.c:1327
void ultimate2_cmd_global(char *source, char *buf)
Definition: ultimate2.c:1071
void ultimate2_cmd_nc_change(User *u)
Definition: ultimate2.c:1448
void ultimate2_cmd_sqline(char *mask, char *reason)
Definition: ultimate2.c:784
void ultimate2_cmd_pong(char *servname, char *who)
Definition: ultimate2.c:880
void ultimate2_cmd_kick(char *source, char *chan, char *user, char *buf)
Definition: ultimate2.c:1248
void ultimate2_cmd_svsnick(char *source, char *guest, time_t when)
Definition: ultimate2.c:1111
void ultimate2_cmd_mode(char *source, char *dest, char *buf)
Definition: ultimate2.c:1336
E int servernum
Definition: extern.h:615
void ultimate2_cmd_notice2(char *source, char *dest, char *msg)
Definition: ultimate2.c:1280
void ultimate2_cmd_notice(char *source, char *dest, char *buf)
Definition: ultimate2.c:1267
int ultimate2_valid_nick(char *nick)
void ultimate2_cmd_unsqline(char *user)
Definition: ultimate2.c:826
void ultimate2_cmd_307(char *buf)
Definition: ultimate2.c:967
void ultimate2_cmd_401(char *source, char *who)
Definition: ultimate2.c:1022
void ultimate2_set_umode(User *user, int ac, char **av)
void ultimate2_cmd_remove_akill(char *user, char *host)
Definition: ultimate2.c:799
void ultimate2_cmd_312(char *buf)
Definition: ultimate2.c:987
void ultimate2_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: ultimate2.c:1345
void ultimate2_cmd_svid_umode2(User *u, char *ts)
Definition: ultimate2.c:1454
void ultimate2_cmd_jupe(char *jserver, char *who, char *reason)
Definition: ultimate2.c:1571
void ultimate2_cmd_sgline(char *mask, char *reason)
Definition: ultimate2.c:1413
void ultimate2_cmd_svskill(char *source, char *user, char *buf)
Definition: ultimate2.c:842
void ultimate2_cmd_svsmode(User *u, int ac, char **av)
Definition: ultimate2.c:851
void ultimate2_cmd_notice_ops(char *source, char *dest, char *buf)
Definition: ultimate2.c:1257
void ultimate2_cmd_vhost_on(char *nick, char *vIdent, char *vhost)
Definition: ultimate2.c:817
void ultimate2_cmd_unszline(char *mask)
Definition: ultimate2.c:1401
void ultimate2_cmd_invite(char *source, char *chan, char *nick)
Definition: ultimate2.c:924
void ultimate2_cmd_unban(char *name, char *nick)
Definition: ultimate2.c:1427
void ultimate2_cmd_372(char *source, char *msg)
Definition: ultimate2.c:1355
void ultimate2_cmd_serv_privmsg(char *source, char *dest, char *msg)
Definition: ultimate2.c:1304
void ultimate2_cmd_vhost_off(User *u)
Definition: ultimate2.c:812
void ultimate2_cmd_join(char *user, char *channel, time_t chantime)
Definition: ultimate2.c:831
void ultimate2_cmd_243(char *buf)
Definition: ultimate2.c:1051
void ultimate2_cmd_250(char *buf)
Definition: ultimate2.c:957
int ultimate2_flood_mode_check(char *value)
void ultimate2_cmd_serv_notice(char *source, char *dest, char *msg)
Definition: ultimate2.c:1299