Anope IRC Services  Version 1.8
bahamut.h
Go to the documentation of this file.
1 /* Bahamut 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 /* umode +a - Services Admin */
17 #define UMODE_h 0x00000002 /* umode +h - Helper */
18 #define UMODE_i 0x00000004 /* umode +i - Invisible */
19 #define UMODE_o 0x00000008 /* umode +o - Oper */
20 #define UMODE_r 0x00000010 /* umode +r - registered nick */
21 #define UMODE_w 0x00000020 /* umode +w - Get wallops */
22 #define UMODE_A 0x00000040 /* umode +A - Server Admin */
23 #define UMODE_x 0x00000080 /* umode +x - Squelch with notice */
24 #define UMODE_X 0x00000100 /* umode +X - Squelch without notice */
25 #define UMODE_F 0x00000200 /* umode +F - no cptr->since message rate throttle */
26 #define UMODE_j 0x00000400 /* umode +j - client rejection notices */
27 #define UMODE_K 0x00000800 /* umode +K - U: lined server kill messages */
28 #define UMODE_O 0x00001000 /* umode +O - Local Oper */
29 #define UMODE_s 0x00002000 /* umode +s - Server notices */
30 #define UMODE_c 0x00004000 /* umode +c - Client connections/exits */
31 #define UMODE_k 0x00008000 /* umode +k - Server kill messages */
32 #define UMODE_f 0x00010000 /* umode +f - Server flood messages */
33 #define UMODE_y 0x00020000 /* umode +y - Stats/links */
34 #define UMODE_d 0x00040000 /* umode +d - Debug info */
35 #define UMODE_g 0x00080000 /* umode +g - Globops */
36 #define UMODE_b 0x00100000 /* umode +b - Chatops */
37 #define UMODE_n 0x00200000 /* umode +n - Routing Notices */
38 #define UMODE_m 0x00400000 /* umode +m - spambot notices */
39 #define UMODE_e 0x00800000 /* umode +e - oper notices for the above +D */
40 #define UMODE_D 0x01000000 /* umode +D - Hidden dccallow umode */
41 #define UMODE_I 0x02000000 /* umode +I - invisible oper (masked) */
42 #define UMODE_R 0x80000000 /* unmode +R - No non registered msgs */
43 
44 #define CMODE_i 0x00000001
45 #define CMODE_m 0x00000002
46 #define CMODE_n 0x00000004
47 #define CMODE_p 0x00000008
48 #define CMODE_s 0x00000010
49 #define CMODE_t 0x00000020
50 #define CMODE_k 0x00000040 /* These two used only by ChanServ */
51 #define CMODE_l 0x00000080
52 #define CMODE_R 0x00000100 /* Only identified users can join */
53 #define CMODE_r 0x00000200 /* Set for all registered channels */
54 #define CMODE_c 0x00000400 /* Colors can't be used */
55 #define CMODE_M 0x00000800 /* Non-regged nicks can't send messages */
56 #define CMODE_j 0x00001000 /* join throttle */
57 #define CMODE_O 0x00008000 /* Only opers can join */
58 
59 #define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
60 
61 void bahamut_set_umode(User * user, int ac, char **av);
62 void bahamut_cmd_svsnoop(char *server, int set);
63 void bahamut_cmd_remove_akill(char *user, char *host);
64 void bahamut_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when);
65 void bahamut_cmd_vhost_off(User * u);
66 void bahamut_cmd_akill(char *user, char *host, char *who, time_t when,time_t expires, char *reason);
67 void bahamut_cmd_svskill(char *source, char *user, char *buf);
68 void bahamut_cmd_svsmode(User * u, int ac, char **av);
69 void bahamut_cmd_372(char *source, char *msg);
70 void bahamut_cmd_372_error(char *source);
71 void bahamut_cmd_375(char *source);
72 void bahamut_cmd_376(char *source);
73 void bahamut_cmd_nick(char *nick, char *name, char *modes);
74 void bahamut_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes);
75 void bahamut_cmd_mode(char *source, char *dest, char *buf);
76 void bahamut_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes);
77 void bahamut_cmd_kick(char *source, char *chan, char *user, char *buf);
78 void bahamut_cmd_notice_ops(char *source, char *dest, char *buf);
79 void bahamut_cmd_notice(char *source, char *dest, char *buf);
80 void bahamut_cmd_notice2(char *source, char *dest, char *msg);
81 void bahamut_cmd_privmsg(char *source, char *dest, char *buf);
82 void bahamut_cmd_privmsg2(char *source, char *dest, char *msg);
83 void bahamut_cmd_serv_notice(char *source, char *dest, char *msg);
84 void bahamut_cmd_serv_privmsg(char *source, char *dest, char *msg);
85 void bahamut_cmd_bot_chan_mode(char *nick, char *chan);
86 void bahamut_cmd_351(char *source);
87 void bahamut_cmd_quit(char *source, char *buf);
88 void bahamut_cmd_pong(char *servname, char *who);
89 void bahamut_cmd_join(char *user, char *channel, time_t chantime);
90 void bahamut_cmd_unsqline(char *user);
91 void bahamut_cmd_invite(char *source, char *chan, char *nick);
92 void bahamut_cmd_part(char *nick, char *chan, char *buf);
93 void bahamut_cmd_391(char *source, char *timestr);
94 void bahamut_cmd_250(char *buf);
95 void bahamut_cmd_307(char *buf);
96 void bahamut_cmd_311(char *buf);
97 void bahamut_cmd_312(char *buf);
98 void bahamut_cmd_317(char *buf);
99 void bahamut_cmd_219(char *source, char *letter);
100 void bahamut_cmd_401(char *source, char *who);
101 void bahamut_cmd_318(char *source, char *who);
102 void bahamut_cmd_242(char *buf);
103 void bahamut_cmd_243(char *buf);
104 void bahamut_cmd_211(char *buf);
105 void bahamut_cmd_global(char *source, char *buf);
106 void bahamut_cmd_global_legacy(char *source, char *fmt);
107 void bahamut_cmd_sqline(char *mask, char *reason);
108 void bahamut_cmd_squit(char *servname, char *message);
109 void bahamut_cmd_svso(char *source, char *nick, char *flag);
110 void bahamut_cmd_chg_nick(char *oldnick, char *newnick);
111 void bahamut_cmd_svsnick(char *source, char *guest, time_t when);
112 void bahamut_cmd_vhost_on(char *nick, char *vIdent, char *vhost);
114 void bahamut_cmd_bob();
115 void bahamut_cmd_svshold(char *nick);
116 void bahamut_cmd_release_svshold(char *nick);
117 void bahamut_cmd_unsgline(char *mask);
118 void bahamut_cmd_unszline(char *mask);
119 void bahamut_cmd_szline(char *mask, char *reason, char *whom);
120 void bahamut_cmd_sgline(char *mask, char *reason);
121 void bahamut_cmd_unban(char *name, char *nick);
122 void bahamut_cmd_svsmode_chan(char *name, char *mode, char *nick);
123 void bahamut_cmd_svid_umode(char *nick, time_t ts);
124 void bahamut_cmd_nc_change(User * u);
125 void bahamut_cmd_svid_umode2(User * u, char *ts);
126 void bahamut_cmd_svid_umode3(User * u, char *ts);
127 void bahamut_cmd_eob();
128 int bahamut_flood_mode_check(char *value);
129 void bahamut_cmd_jupe(char *jserver, char *who, char *reason);
130 int bahamut_valid_nick(char *nick);
131 void bahamut_cmd_ctcp(char *source, char *dest, char *buf);
132 
void bahamut_cmd_join(char *user, char *channel, time_t chantime)
Definition: bahamut.c:789
void bahamut_cmd_312(char *buf)
Definition: bahamut.c:1148
void bahamut_cmd_pong(char *servname, char *who)
Definition: bahamut.c:859
void bahamut_cmd_mode(char *source, char *dest, char *buf)
Definition: bahamut.c:478
void bahamut_cmd_chg_nick(char *oldnick, char *newnick)
Definition: bahamut.c:1394
void bahamut_cmd_privmsg(char *source, char *dest, char *buf)
Definition: bahamut.c:1074
void bahamut_cmd_317(char *buf)
Definition: bahamut.c:1158
void bahamut_cmd_notice(char *source, char *dest, char *buf)
Definition: bahamut.c:1056
void bahamut_cmd_svsnoop(char *server, int set)
Definition: bahamut.c:738
void bahamut_cmd_unban(char *name, char *nick)
Definition: bahamut.c:509
void bahamut_cmd_serv_notice(char *source, char *dest, char *msg)
Definition: bahamut.c:1088
void bahamut_cmd_250(char *buf)
Definition: bahamut.c:1118
void bahamut_cmd_svsnick(char *source, char *guest, time_t when)
Definition: bahamut.c:1331
void bahamut_cmd_part(char *nick, char *chan, char *buf)
Definition: bahamut.c:761
void bahamut_cmd_global(char *source, char *buf)
Definition: bahamut.c:1099
void bahamut_cmd_svso(char *source, char *nick, char *flag)
Definition: bahamut.c:1346
void bahamut_cmd_privmsg2(char *source, char *dest, char *msg)
Definition: bahamut.c:1083
void bahamut_cmd_quit(char *source, char *buf)
Definition: bahamut.c:1282
void bahamut_cmd_375(char *source)
Definition: bahamut.c:1260
void bahamut_cmd_svsmode_chan(char *name, char *mode, char *nick)
Definition: bahamut.c:517
void bahamut_cmd_243(char *buf)
Definition: bahamut.c:1212
int bahamut_flood_mode_check(char *value)
Definition: bahamut.c:1493
void bahamut_cmd_svskill(char *source, char *user, char *buf)
Definition: bahamut.c:823
void bahamut_cmd_351(char *source)
Definition: bahamut.c:1308
void bahamut_cmd_401(char *source, char *who)
Definition: bahamut.c:1183
void bahamut_cmd_svid_umode3(User *u, char *ts)
Definition: bahamut.c:1384
void bahamut_cmd_unsqline(char *user)
Definition: bahamut.c:783
void bahamut_set_umode(User *user, int ac, char **av)
Definition: bahamut.c:154
void bahamut_cmd_connect(int servernum)
Definition: bahamut.c:896
void bahamut_cmd_sqline(char *mask, char *reason)
Definition: bahamut.c:703
void bahamut_cmd_372(char *source, char *msg)
Definition: bahamut.c:1249
void bahamut_cmd_remove_akill(char *user, char *host)
Definition: bahamut.c:755
void bahamut_cmd_squit(char *servname, char *message)
Definition: bahamut.c:853
void bahamut_cmd_nick(char *nick, char *name, char *modes)
Definition: bahamut.c:1231
void bahamut_cmd_ctcp(char *source, char *dest, char *buf)
Definition: bahamut.c:1546
void bahamut_cmd_unszline(char *mask)
Definition: bahamut.c:719
void bahamut_cmd_219(char *source, char *letter)
Definition: bahamut.c:1168
void bahamut_cmd_311(char *buf)
Definition: bahamut.c:1138
void bahamut_cmd_bob()
Definition: bahamut.c:914
void bahamut_cmd_notice_ops(char *source, char *dest, char *buf)
Definition: bahamut.c:1047
void bahamut_cmd_sgline(char *mask, char *reason)
Definition: bahamut.c:749
void bahamut_cmd_svsmode(User *u, int ac, char **av)
Definition: bahamut.c:840
void bahamut_cmd_invite(char *source, char *chan, char *nick)
Definition: bahamut.c:1272
E int servernum
Definition: extern.h:615
void bahamut_cmd_242(char *buf)
Definition: bahamut.c:1202
void bahamut_cmd_318(char *source, char *who)
Definition: bahamut.c:1192
void bahamut_cmd_svid_umode(char *nick, time_t ts)
Definition: bahamut.c:1363
void bahamut_cmd_eob()
Definition: bahamut.c:1450
void bahamut_cmd_akill(char *user, char *host, char *who, time_t when, time_t expires, char *reason)
Definition: bahamut.c:807
void bahamut_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: bahamut.c:1339
void bahamut_cmd_global_legacy(char *source, char *fmt)
Definition: bahamut.c:1521
void bahamut_cmd_391(char *source, char *timestr)
Definition: bahamut.c:1109
void bahamut_cmd_kick(char *source, char *chan, char *user, char *buf)
Definition: bahamut.c:1240
void bahamut_cmd_bot_chan_mode(char *nick, char *chan)
Definition: bahamut.c:526
void bahamut_cmd_unsgline(char *mask)
Definition: bahamut.c:713
void bahamut_cmd_307(char *buf)
Definition: bahamut.c:1128
void bahamut_cmd_szline(char *mask, char *reason, char *whom)
Definition: bahamut.c:728
void bahamut_cmd_376(char *source)
Definition: bahamut.c:1266
void bahamut_cmd_vhost_on(char *nick, char *vIdent, char *vhost)
Definition: bahamut.c:1351
void bahamut_cmd_svshold(char *nick)
Definition: bahamut.c:496
void bahamut_cmd_vhost_off(User *u)
Definition: bahamut.c:1356
void bahamut_cmd_jupe(char *jserver, char *who, char *reason)
Definition: bahamut.c:1507
void bahamut_cmd_serv_privmsg(char *source, char *dest, char *msg)
Definition: bahamut.c:1093
void bahamut_cmd_372_error(char *source)
Definition: bahamut.c:1254
void bahamut_cmd_211(char *buf)
Definition: bahamut.c:1222
void bahamut_cmd_svid_umode2(User *u, char *ts)
Definition: bahamut.c:1378
void bahamut_cmd_nc_change(User *u)
Definition: bahamut.c:1372
int bahamut_valid_nick(char *nick)
Definition: bahamut.c:1530
void bahamut_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when)
Definition: bahamut.c:775
void bahamut_cmd_release_svshold(char *nick)
Definition: bahamut.c:503
void bahamut_cmd_notice2(char *source, char *dest, char *msg)
Definition: bahamut.c:1069
void bahamut_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: bahamut.c:1316