Anope IRC Services  Version 1.8
Go to the documentation of this file.
1 /* Ultimate IRCD 3.0 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 #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_0 0x00000080
22 #define UMODE_Z 0x00000100 /* umode +Z - Services Root Admin */
23 #define UMODE_S 0x00000200 /* umode +S - Services Client */
24 #define UMODE_D 0x00000400 /* umode +D - has seen dcc warning message */
25 #define UMODE_d 0x00000800 /* umode +d - user is deaf to channel messages */
26 #define UMODE_W 0x00001000 /* umode +d - user is deaf to channel messages */
27 #define UMODE_p 0x04000000
28 #define UMODE_P 0x20000000 /* umode +P - Services Admin */
29 #define UMODE_x 0x40000000
30 #define UMODE_R 0x80000000
33 #define CMODE_i 0x00000001
34 #define CMODE_m 0x00000002
35 #define CMODE_n 0x00000004
36 #define CMODE_p 0x00000008
37 #define CMODE_s 0x00000010
38 #define CMODE_t 0x00000020
39 #define CMODE_k 0x00000040 /* These two used only by ChanServ */
40 #define CMODE_l 0x00000080
41 #define CMODE_R 0x00000100 /* Only identified users can join */
42 #define CMODE_r 0x00000200 /* Set for all registered channels */
43 #define CMODE_c 0x00000400 /* Colors can't be used */
44 #define CMODE_A 0x00000800
45 #define CMODE_N 0x00001000
46 #define CMODE_S 0x00002000
47 #define CMODE_K 0x00004000
48 #define CMODE_O 0x00008000 /* Only opers can join */
49 #define CMODE_q 0x00010000 /* No Quit Reason */
50 #define CMODE_M 0x00020000 /* Non-regged nicks can't send messages */
54 void ultimate3_set_umode(User * user, int ac, char **av);
55 void ultimate3_cmd_svsnoop(char *server, int set);
56 void ultimate3_cmd_remove_akill(char *user, char *host);
57 void ultimate3_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when);
59 void ultimate3_cmd_akill(char *user, char *host, char *who, time_t when,time_t expires, char *reason);
60 void ultimate3_cmd_svskill(char *source, char *user, char *buf);
61 void ultimate3_cmd_svsmode(User * u, int ac, char **av);
62 void ultimate3_cmd_372(char *source, char *msg);
63 void ultimate3_cmd_372_error(char *source);
64 void ultimate3_cmd_375(char *source);
65 void ultimate3_cmd_376(char *source);
66 void ultimate3_cmd_nick(char *nick, char *name, char *modes);
67 void ultimate3_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes);
68 void ultimate3_cmd_mode(char *source, char *dest, char *buf);
69 void ultimate3_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes);
70 void ultimate3_cmd_kick(char *source, char *chan, char *user, char *buf);
71 void ultimate3_cmd_notice_ops(char *source, char *dest, char *buf);
72 void ultimate3_cmd_notice(char *source, char *dest, char *buf);
73 void ultimate3_cmd_notice2(char *source, char *dest, char *msg);
74 void ultimate3_cmd_privmsg(char *source, char *dest, char *buf);
75 void ultimate3_cmd_privmsg2(char *source, char *dest, char *msg);
76 void ultimate3_cmd_serv_notice(char *source, char *dest, char *msg);
77 void ultimate3_cmd_serv_privmsg(char *source, char *dest, char *msg);
78 void ultimate3_cmd_bot_chan_mode(char *nick, char *chan);
79 void ultimate3_cmd_351(char *source);
80 void ultimate3_cmd_quit(char *source, char *buf);
81 void ultimate3_cmd_pong(char *servname, char *who);
82 void ultimate3_cmd_join(char *user, char *channel, time_t chantime);
83 void ultimate3_cmd_unsqline(char *user);
84 void ultimate3_cmd_invite(char *source, char *chan, char *nick);
85 void ultimate3_cmd_part(char *nick, char *chan, char *buf);
86 void ultimate3_cmd_391(char *source, char *timestr);
87 void ultimate3_cmd_250(char *buf);
88 void ultimate3_cmd_307(char *buf);
89 void ultimate3_cmd_311(char *buf);
90 void ultimate3_cmd_312(char *buf);
91 void ultimate3_cmd_317(char *buf);
92 void ultimate3_cmd_219(char *source, char *letter);
93 void ultimate3_cmd_401(char *source, char *who);
94 void ultimate3_cmd_318(char *source, char *who);
95 void ultimate3_cmd_242(char *buf);
96 void ultimate3_cmd_243(char *buf);
97 void ultimate3_cmd_211(char *buf);
98 void ultimate3_cmd_global(char *source, char *buf);
99 void ultimate3_cmd_global_legacy(char *source, char *fmt);
100 void ultimate3_cmd_sqline(char *mask, char *reason);
101 void ultimate3_cmd_squit(char *servname, char *message);
102 void ultimate3_cmd_svso(char *source, char *nick, char *flag);
103 void ultimate3_cmd_chg_nick(char *oldnick, char *newnick);
104 void ultimate3_cmd_svsnick(char *source, char *guest, time_t when);
105 void ultimate3_cmd_vhost_on(char *nick, char *vIdent, char *vhost);
107 void ultimate3_cmd_bob();
108 void ultimate3_cmd_svshold(char *nick);
109 void ultimate3_cmd_release_svshold(char *nick);
110 void ultimate3_cmd_unsgline(char *mask);
111 void ultimate3_cmd_unszline(char *mask);
112 void ultimate3_cmd_szline(char *mask, char *reason, char *whom);
113 void ultimate3_cmd_sgline(char *mask, char *reason);
114 void ultimate3_cmd_unban(char *name, char *nick);
115 void ultimate3_cmd_svsmode_chan(char *name, char *mode, char *nick);
116 void ultimate3_cmd_svid_umode(char *nick, time_t ts);
117 void ultimate3_cmd_nc_change(User * u);
118 void ultimate3_cmd_svid_umode2(User * u, char *ts);
119 void ultimate3_cmd_svid_umode3(User * u, char *ts);
120 void ultimate3_cmd_eob();
121 int ultimate3_flood_mode_check(char *value);
122 void ultimate3_cmd_jupe(char *jserver, char *who, char *reason);
123 int ultimate3_valid_nick(char *nick);
124 void ultimate3_cmd_ctcp(char *source, char *dest, char *buf);
void ultimate3_cmd_svsmode(User *u, int ac, char **av)
Definition: ultimate3.c:756
void ultimate3_cmd_remove_akill(char *user, char *host)
Definition: ultimate3.c:717
void ultimate3_cmd_ctcp(char *source, char *dest, char *buf)
Definition: ultimate3.c:1708
void ultimate3_cmd_unban(char *name, char *nick)
Definition: ultimate3.c:482
void ultimate3_cmd_notice2(char *source, char *dest, char *msg)
Definition: ultimate3.c:1126
void ultimate3_cmd_vhost_off(User *u)
Definition: ultimate3.c:722
void ultimate3_cmd_notice(char *source, char *dest, char *buf)
Definition: ultimate3.c:1113
void ultimate3_cmd_307(char *buf)
Definition: ultimate3.c:1280
void ultimate3_cmd_connect(int servernum)
Definition: ultimate3.c:1452
void ultimate3_cmd_372_error(char *source)
Definition: ultimate3.c:1043
void ultimate3_cmd_kick(char *source, char *chan, char *user, char *buf)
Definition: ultimate3.c:1094
void ultimate3_cmd_312(char *buf)
Definition: ultimate3.c:1300
void ultimate3_cmd_317(char *buf)
Definition: ultimate3.c:1310
void ultimate3_cmd_eob()
Definition: ultimate3.c:1586
void ultimate3_cmd_pong(char *servname, char *who)
Definition: ultimate3.c:1203
void ultimate3_cmd_318(char *source, char *who)
Definition: ultimate3.c:1344
void ultimate3_cmd_global(char *source, char *buf)
Definition: ultimate3.c:1384
void ultimate3_cmd_unsqline(char *user)
Definition: ultimate3.c:1209
void ultimate3_cmd_privmsg(char *source, char *dest, char *buf)
Definition: ultimate3.c:1131
void ultimate3_cmd_sgline(char *mask, char *reason)
Definition: ultimate3.c:712
void ultimate3_cmd_bot_chan_mode(char *nick, char *chan)
Definition: ultimate3.c:1155
void ultimate3_cmd_bob()
Definition: ultimate3.c:1472
void ultimate3_cmd_211(char *buf)
Definition: ultimate3.c:1374
void ultimate3_cmd_401(char *source, char *who)
Definition: ultimate3.c:1335
void ultimate3_cmd_part(char *nick, char *chan, char *buf)
Definition: ultimate3.c:1246
void ultimate3_cmd_jupe(char *jserver, char *who, char *reason)
Definition: ultimate3.c:1668
void ultimate3_cmd_375(char *source)
Definition: ultimate3.c:1049
void ultimate3_cmd_mode(char *source, char *dest, char *buf)
Definition: ultimate3.c:1076
void ultimate3_cmd_nc_change(User *u)
Definition: ultimate3.c:1499
void ultimate3_set_umode(User *user, int ac, char **av)
Definition: ultimate3.c:151
void ultimate3_cmd_svshold(char *nick)
Definition: ultimate3.c:1478
void ultimate3_cmd_svid_umode(char *nick, time_t ts)
Definition: ultimate3.c:1491
void ultimate3_cmd_serv_privmsg(char *source, char *dest, char *msg)
Definition: ultimate3.c:1150
void ultimate3_cmd_szline(char *mask, char *reason, char *whom)
Definition: ultimate3.c:694
void ultimate3_cmd_vhost_on(char *nick, char *vIdent, char *vhost)
Definition: ultimate3.c:728
void ultimate3_cmd_privmsg2(char *source, char *dest, char *msg)
Definition: ultimate3.c:1140
void ultimate3_cmd_376(char *source)
Definition: ultimate3.c:1055
void ultimate3_cmd_391(char *source, char *timestr)
Definition: ultimate3.c:1261
void ultimate3_cmd_372(char *source, char *msg)
Definition: ultimate3.c:1038
void ultimate3_cmd_akill(char *user, char *host, char *who, time_t when, time_t expires, char *reason)
Definition: ultimate3.c:739
E int servernum
Definition: extern.h:615
void ultimate3_cmd_250(char *buf)
Definition: ultimate3.c:1270
int ultimate3_flood_mode_check(char *value)
void ultimate3_cmd_311(char *buf)
Definition: ultimate3.c:1290
void ultimate3_cmd_quit(char *source, char *buf)
Definition: ultimate3.c:1169
void ultimate3_cmd_svsnoop(char *server, int set)
Definition: ultimate3.c:702
void ultimate3_cmd_squit(char *servname, char *message)
Definition: ultimate3.c:1394
void ultimate3_cmd_svsmode_chan(char *name, char *mode, char *nick)
Definition: ultimate3.c:490
void ultimate3_cmd_chg_nick(char *oldnick, char *newnick)
Definition: ultimate3.c:1414
void ultimate3_cmd_serv_notice(char *source, char *dest, char *msg)
Definition: ultimate3.c:1145
void ultimate3_cmd_notice_ops(char *source, char *dest, char *buf)
Definition: ultimate3.c:1103
void ultimate3_cmd_svso(char *source, char *nick, char *flag)
Definition: ultimate3.c:1404
int ultimate3_valid_nick(char *nick)
void ultimate3_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when)
Definition: ultimate3.c:1031
void ultimate3_cmd_nick(char *nick, char *name, char *modes)
Definition: ultimate3.c:1060
void ultimate3_cmd_sqline(char *mask, char *reason)
Definition: ultimate3.c:670
void ultimate3_cmd_351(char *source)
Definition: ultimate3.c:1160
void ultimate3_cmd_242(char *buf)
Definition: ultimate3.c:1354
void ultimate3_cmd_svid_umode2(User *u, char *ts)
Definition: ultimate3.c:1505
void ultimate3_cmd_svskill(char *source, char *user, char *buf)
Definition: ultimate3.c:746
void ultimate3_cmd_243(char *buf)
Definition: ultimate3.c:1364
void ultimate3_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: ultimate3.c:1069
void ultimate3_cmd_join(char *user, char *channel, time_t chantime)
Definition: ultimate3.c:734
void ultimate3_cmd_svsnick(char *source, char *guest, time_t when)
Definition: ultimate3.c:1424
void ultimate3_cmd_219(char *source, char *letter)
Definition: ultimate3.c:1320
void ultimate3_cmd_unsgline(char *mask)
Definition: ultimate3.c:679
void ultimate3_cmd_release_svshold(char *nick)
Definition: ultimate3.c:1484
void ultimate3_cmd_svid_umode3(User *u, char *ts)
Definition: ultimate3.c:1510
void ultimate3_cmd_global_legacy(char *source, char *fmt)
Definition: ultimate3.c:1682
void ultimate3_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: ultimate3.c:1085
void ultimate3_cmd_invite(char *source, char *chan, char *nick)
Definition: ultimate3.c:1236
void ultimate3_cmd_unszline(char *mask)
Definition: ultimate3.c:684