Anope IRC Services  Version 1.8
plexus2.h
Go to the documentation of this file.
1 /* PlexusIRCD IRCD 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_s 0x00000040
21 #define UMODE_c 0x00000080
22 #define UMODE_r 0x00000100
23 #define UMODE_k 0x00000200
24 #define UMODE_f 0x00000400
25 #define UMODE_y 0x00000800
26 #define UMODE_d 0x00001000
27 #define UMODE_n 0x00002000
28 #define UMODE_x 0x00004000
29 #define UMODE_u 0x00008000
30 #define UMODE_b 0x00010000
31 #define UMODE_l 0x00020000
32 #define UMODE_g 0x00040000
33 #define UMODE_S 0x00080000
34 
35 
36 #define CMODE_i 0x00000001
37 #define CMODE_m 0x00000002
38 #define CMODE_n 0x00000004
39 #define CMODE_p 0x00000008
40 #define CMODE_s 0x00000010
41 #define CMODE_t 0x00000020
42 #define CMODE_k 0x00000040 /* These two used only by ChanServ */
43 #define CMODE_l 0x00000080
44 #define CMODE_a 0x00000400
45 #define CMODE_Z 0x00000800
46 #define CMODE_M 0x00001000
47 #define CMODE_c 0x00002000
48 #define CMODE_O 0x00004000
49 #define CMODE_R 0x00008000
50 #define CMODE_N 0x00010000
51 
52 
53 #define DEFAULT_MLOCK CMODE_n | CMODE_t
54 
55 void plexus_set_umode(User * user, int ac, char **av);
56 void plexus_cmd_svsnoop(char *server, int set);
57 void plexus_cmd_remove_akill(char *user, char *host);
58 void plexus_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when);
59 void plexus_cmd_vhost_off(User * u);
60 void plexus_cmd_akill(char *user, char *host, char *who, time_t when,time_t expires, char *reason);
61 void plexus_cmd_svskill(char *source, char *user, char *buf);
62 void plexus_cmd_svsmode(User * u, int ac, char **av);
63 void plexus_cmd_372(char *source, char *msg);
64 void plexus_cmd_372_error(char *source);
65 void plexus_cmd_375(char *source);
66 void plexus_cmd_376(char *source);
67 void plexus_cmd_nick(char *nick, char *name, char *modes);
68 void plexus_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes);
69 void plexus_cmd_mode(char *source, char *dest, char *buf);
70 void plexus_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes);
71 void plexus_cmd_kick(char *source, char *chan, char *user, char *buf);
72 void plexus_cmd_notice_ops(char *source, char *dest, char *buf);
73 void plexus_cmd_notice(char *source, char *dest, char *buf);
74 void plexus_cmd_notice2(char *source, char *dest, char *msg);
75 void plexus_cmd_privmsg(char *source, char *dest, char *buf);
76 void plexus_cmd_privmsg2(char *source, char *dest, char *msg);
77 void plexus_cmd_serv_notice(char *source, char *dest, char *msg);
78 void plexus_cmd_serv_privmsg(char *source, char *dest, char *msg);
79 void plexus_cmd_bot_chan_mode(char *nick, char *chan);
80 void plexus_cmd_351(char *source);
81 void plexus_cmd_quit(char *source, char *buf);
82 void plexus_cmd_pong(char *servname, char *who);
83 void plexus_cmd_join(char *user, char *channel, time_t chantime);
84 void plexus_cmd_unsqline(char *user);
85 void plexus_cmd_invite(char *source, char *chan, char *nick);
86 void plexus_cmd_part(char *nick, char *chan, char *buf);
87 void plexus_cmd_391(char *source, char *timestr);
88 void plexus_cmd_250(char *buf);
89 void plexus_cmd_307(char *buf);
90 void plexus_cmd_311(char *buf);
91 void plexus_cmd_312(char *buf);
92 void plexus_cmd_317(char *buf);
93 void plexus_cmd_219(char *source, char *letter);
94 void plexus_cmd_401(char *source, char *who);
95 void plexus_cmd_318(char *source, char *who);
96 void plexus_cmd_242(char *buf);
97 void plexus_cmd_243(char *buf);
98 void plexus_cmd_211(char *buf);
99 void plexus_cmd_global(char *source, char *buf);
100 void plexus_cmd_global_legacy(char *source, char *fmt);
101 void plexus_cmd_sqline(char *mask, char *reason);
102 void plexus_cmd_squit(char *servname, char *message);
103 void plexus_cmd_svso(char *source, char *nick, char *flag);
104 void plexus_cmd_chg_nick(char *oldnick, char *newnick);
105 void plexus_cmd_svsnick(char *source, char *guest, time_t when);
106 void plexus_cmd_vhost_on(char *nick, char *vIdent, char *vhost);
107 void plexus_cmd_connect(int servernum);
108 void plexus_cmd_bob();
109 void plexus_cmd_svshold(char *nick);
110 void plexus_cmd_release_svshold(char *nick);
111 void plexus_cmd_unsgline(char *mask);
112 void plexus_cmd_unszline(char *mask);
113 void plexus_cmd_szline(char *mask, char *reason, char *whom);
114 void plexus_cmd_sgline(char *mask, char *reason);
115 void plexus_cmd_unban(char *name, char *nick);
116 void plexus_cmd_svsmode_chan(char *name, char *mode, char *nick);
117 void plexus_cmd_svid_umode(char *nick, time_t ts);
118 void plexus_cmd_nc_change(User * u);
119 void plexus_cmd_svid_umode2(User * u, char *ts);
120 void plexus_cmd_svid_umode3(User * u, char *ts);
121 void plexus_cmd_eob();
122 int plexus_flood_mode_check(char *value);
123 void plexus_cmd_jupe(char *jserver, char *who, char *reason);
124 int plexus_valid_nick(char *nick);
125 void plexus_cmd_ctcp(char *source, char *dest, char *buf);
126 
127 
void plexus_cmd_nc_change(User *u)
Definition: plexus2.c:1599
void plexus_cmd_svsnoop(char *server, int set)
Definition: plexus2.c:809
void plexus_cmd_243(char *buf)
Definition: plexus2.c:1347
void plexus_cmd_part(char *nick, char *chan, char *buf)
Definition: plexus2.c:1019
void plexus_cmd_kick(char *source, char *chan, char *user, char *buf)
Definition: plexus2.c:1391
void plexus_cmd_ctcp(char *source, char *dest, char *buf)
Definition: plexus2.c:1751
void plexus_cmd_vhost_off(User *u)
Definition: plexus2.c:841
void plexus_cmd_connect(int servernum)
Definition: plexus2.c:977
void plexus_cmd_sgline(char *mask, char *reason)
Definition: plexus2.c:821
void plexus_cmd_unsgline(char *mask)
Definition: plexus2.c:791
void plexus_cmd_squit(char *servname, char *message)
Definition: plexus2.c:1455
void plexus_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: plexus2.c:1561
void plexus_cmd_351(char *source)
Definition: plexus2.c:1493
void plexus_cmd_bot_chan_mode(char *nick, char *chan)
Definition: plexus2.c:1415
void plexus_cmd_sqline(char *mask, char *reason)
Definition: plexus2.c:785
void plexus_cmd_pong(char *servname, char *who)
Definition: plexus2.c:1436
void plexus_set_umode(User *user, int ac, char **av)
Definition: plexus2.c:152
void plexus_cmd_serv_privmsg(char *source, char *dest, char *msg)
Definition: plexus2.c:587
void plexus_cmd_401(char *source, char *who)
Definition: plexus2.c:1312
void plexus_cmd_307(char *buf)
Definition: plexus2.c:1245
void plexus_cmd_mode(char *source, char *dest, char *buf)
Definition: plexus2.c:1370
void plexus_cmd_eob()
Definition: plexus2.c:1109
void plexus_cmd_quit(char *source, char *buf)
Definition: plexus2.c:1422
void plexus_cmd_unban(char *name, char *nick)
Definition: plexus2.c:1575
void plexus_cmd_svskill(char *source, char *user, char *buf)
Definition: plexus2.c:896
void plexus_cmd_szline(char *mask, char *reason, char *whom)
Definition: plexus2.c:803
int plexus_flood_mode_check(char *value)
Definition: plexus2.c:1695
void plexus_cmd_nick(char *nick, char *name, char *modes)
Definition: plexus2.c:1381
void plexus_cmd_global_legacy(char *source, char *fmt)
Definition: plexus2.c:606
void plexus_cmd_250(char *buf)
Definition: plexus2.c:1233
void plexus_cmd_242(char *buf)
Definition: plexus2.c:1335
void plexus_cmd_svso(char *source, char *nick, char *flag)
Definition: plexus2.c:1569
void plexus_cmd_bob()
Definition: plexus2.c:994
void plexus_cmd_211(char *buf)
Definition: plexus2.c:1359
void plexus_cmd_372(char *source, char *msg)
Definition: plexus2.c:1195
void plexus_cmd_unszline(char *mask)
Definition: plexus2.c:797
void plexus_cmd_svid_umode(char *nick, time_t ts)
Definition: plexus2.c:1591
E int servernum
Definition: extern.h:615
void plexus_cmd_jupe(char *jserver, char *who, char *reason)
Definition: plexus2.c:1714
void plexus_cmd_311(char *buf)
Definition: plexus2.c:1257
void plexus_cmd_notice2(char *source, char *dest, char *msg)
Definition: plexus2.c:558
void plexus_cmd_invite(char *source, char *chan, char *nick)
Definition: plexus2.c:1443
void plexus_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: plexus2.c:1008
void plexus_cmd_unsqline(char *user)
Definition: plexus2.c:866
void plexus_cmd_akill(char *user, char *host, char *who, time_t when, time_t expires, char *reason)
Definition: plexus2.c:888
void plexus_cmd_chg_nick(char *oldnick, char *newnick)
Definition: plexus2.c:1626
void plexus_cmd_svsmode_chan(char *name, char *mode, char *nick)
Definition: plexus2.c:1583
void plexus_cmd_svsnick(char *source, char *guest, time_t when)
Definition: plexus2.c:1551
void plexus_cmd_remove_akill(char *user, char *host)
Definition: plexus2.c:827
void plexus_cmd_privmsg(char *source, char *dest, char *buf)
Definition: plexus2.c:564
void plexus_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when)
Definition: plexus2.c:833
int plexus_valid_nick(char *nick)
Definition: plexus2.c:1732
void plexus_cmd_serv_notice(char *source, char *dest, char *msg)
Definition: plexus2.c:581
void plexus_cmd_312(char *buf)
Definition: plexus2.c:1269
void plexus_cmd_privmsg2(char *source, char *dest, char *msg)
Definition: plexus2.c:575
void plexus_cmd_219(char *source, char *letter)
Definition: plexus2.c:1293
void plexus_cmd_376(char *source)
Definition: plexus2.c:1215
void plexus_cmd_svshold(char *nick)
Definition: plexus2.c:1537
void plexus_cmd_375(char *source)
Definition: plexus2.c:1208
void plexus_cmd_391(char *source, char *timestr)
Definition: plexus2.c:1222
void plexus_cmd_318(char *source, char *who)
Definition: plexus2.c:1323
void plexus_cmd_notice_ops(char *source, char *dest, char *buf)
Definition: plexus2.c:1404
void plexus_cmd_svid_umode3(User *u, char *ts)
Definition: plexus2.c:1619
void plexus_cmd_svsmode(User *u, int ac, char **av)
Definition: plexus2.c:912
void plexus_cmd_svid_umode2(User *u, char *ts)
Definition: plexus2.c:1606
void plexus_cmd_global(char *source, char *buf)
Definition: plexus2.c:594
void plexus_cmd_join(char *user, char *channel, time_t chantime)
Definition: plexus2.c:872
void plexus_cmd_notice(char *source, char *dest, char *buf)
Definition: plexus2.c:540
void plexus_cmd_372_error(char *source)
Definition: plexus2.c:1201
void plexus_cmd_vhost_on(char *nick, char *vIdent, char *vhost)
Definition: plexus2.c:847
void plexus_cmd_317(char *buf)
Definition: plexus2.c:1281
void plexus_cmd_release_svshold(char *nick)
Definition: plexus2.c:1544