Anope IRC Services  Version 1.8
dreamforge.h
Go to the documentation of this file.
1 /* DreamForge 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 /* Services Admin */
15 #define UMODE_h 0x00000002 /* Help system operator */
16 #define UMODE_i 0x00000004 /* makes user invisible */
17 #define UMODE_o 0x00000008 /* Operator */
18 #define UMODE_r 0x00000010 /* Nick set by services as registered */
19 #define UMODE_w 0x00000020 /* send wallops to them */
20 #define UMODE_A 0x00000040 /* Admin */
21 #define UMODE_O 0x00000080 /* Local operator */
22 #define UMODE_s 0x00000100 /* server notices such as kill */
23 #define UMODE_k 0x00000200 /* Show server-kills... */
24 #define UMODE_c 0x00000400 /* Show client information */
25 #define UMODE_f 0x00000800 /* Receive flood warnings */
26 #define UMODE_g 0x80000000 /* Shows some global messages */
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_R 0x00000100 /* Only identified users can join */
37 #define CMODE_r 0x00000200 /* Set for all registered channels */
38 
39 #define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
40 
41 void dreamforge_set_umode(User * user, int ac, char **av);
42 void dreamforge_cmd_svsnoop(char *server, int set);
43 void dreamforge_cmd_remove_akill(char *user, char *host);
44 void dreamforge_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when);
46 void dreamforge_cmd_akill(char *user, char *host, char *who, time_t when,time_t expires, char *reason);
47 void dreamforge_cmd_svskill(char *source, char *user, char *buf);
48 void dreamforge_cmd_svsmode(User * u, int ac, char **av);
49 void dreamforge_cmd_372(char *source, char *msg);
50 void dreamforge_cmd_372_error(char *source);
51 void dreamforge_cmd_375(char *source);
52 void dreamforge_cmd_376(char *source);
53 void dreamforge_cmd_nick(char *nick, char *name, char *modes);
54 void dreamforge_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes);
55 void dreamforge_cmd_mode(char *source, char *dest, char *buf);
56 void dreamforge_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes);
57 void dreamforge_cmd_kick(char *source, char *chan, char *user, char *buf);
58 void dreamforge_cmd_notice_ops(char *source, char *dest, char *buf);
59 void dreamforge_cmd_notice(char *source, char *dest, char *buf);
60 void dreamforge_cmd_notice2(char *source, char *dest, char *msg);
61 void dreamforge_cmd_privmsg(char *source, char *dest, char *buf);
62 void dreamforge_cmd_privmsg2(char *source, char *dest, char *msg);
63 void dreamforge_cmd_serv_notice(char *source, char *dest, char *msg);
64 void dreamforge_cmd_serv_privmsg(char *source, char *dest, char *msg);
65 void dreamforge_cmd_bot_chan_mode(char *nick, char *chan);
66 void dreamforge_cmd_351(char *source);
67 void dreamforge_cmd_quit(char *source, char *buf);
68 void dreamforge_cmd_pong(char *servname, char *who);
69 void dreamforge_cmd_join(char *user, char *channel, time_t chantime);
70 void dreamforge_cmd_unsqline(char *user);
71 void dreamforge_cmd_invite(char *source, char *chan, char *nick);
72 void dreamforge_cmd_part(char *nick, char *chan, char *buf);
73 void dreamforge_cmd_391(char *source, char *timestr);
74 void dreamforge_cmd_250(char *buf);
75 void dreamforge_cmd_307(char *buf);
76 void dreamforge_cmd_311(char *buf);
77 void dreamforge_cmd_312(char *buf);
78 void dreamforge_cmd_317(char *buf);
79 void dreamforge_cmd_219(char *source, char *letter);
80 void dreamforge_cmd_401(char *source, char *who);
81 void dreamforge_cmd_318(char *source, char *who);
82 void dreamforge_cmd_242(char *buf);
83 void dreamforge_cmd_243(char *buf);
84 void dreamforge_cmd_211(char *buf);
85 void dreamforge_cmd_global(char *source, char *buf);
86 void dreamforge_cmd_global_legacy(char *source, char *fmt);
87 void dreamforge_cmd_sqline(char *mask, char *reason);
88 void dreamforge_cmd_squit(char *servname, char *message);
89 void dreamforge_cmd_svso(char *source, char *nick, char *flag);
90 void dreamforge_cmd_chg_nick(char *oldnick, char *newnick);
91 void dreamforge_cmd_svsnick(char *source, char *guest, time_t when);
92 void dreamforge_cmd_vhost_on(char *nick, char *vIdent, char *vhost);
94 void dreamforge_cmd_bob();
95 void dreamforge_cmd_svshold(char *nick);
96 void dreamforge_cmd_release_svshold(char *nick);
97 void dreamforge_cmd_unsgline(char *mask);
98 void dreamforge_cmd_unszline(char *mask);
99 void dreamforge_cmd_szline(char *mask, char *reason, char *whom);
100 void dreamforge_cmd_sgline(char *mask, char *reason);
101 void dreamforge_cmd_unban(char *name, char *nick);
102 void dreamforge_cmd_svsmode_chan(char *name, char *mode, char *nick);
103 void dreamforge_cmd_svid_umode(char *nick, time_t ts);
105 void dreamforge_cmd_svid_umode2(User * u, char *ts);
106 void dreamforge_cmd_svid_umode3(User * u, char *ts);
107 void dreamforge_cmd_eob();
108 int dreamforge_flood_mode_check(char *value);
109 void dreamforge_cmd_jupe(char *jserver, char *who, char *reason);
110 int dreamforge_valid_nick(char *nick);
111 void dreamforge_cmd_ctcp(char *source, char *dest, char *buf);
112 
void dreamforge_cmd_svsmode_chan(char *name, char *mode, char *nick)
Definition: dreamforge.c:1132
void dreamforge_cmd_global_legacy(char *source, char *fmt)
Definition: dreamforge.c:1235
void dreamforge_cmd_serv_privmsg(char *source, char *dest, char *msg)
Definition: dreamforge.c:806
void dreamforge_cmd_unszline(char *mask)
Definition: dreamforge.c:1081
void dreamforge_cmd_chg_nick(char *oldnick, char *newnick)
Definition: dreamforge.c:1172
void dreamforge_cmd_nick(char *nick, char *name, char *modes)
Definition: dreamforge.c:952
void dreamforge_cmd_391(char *source, char *timestr)
Definition: dreamforge.c:830
void dreamforge_cmd_jupe(char *jserver, char *who, char *reason)
Definition: dreamforge.c:1221
void dreamforge_cmd_401(char *source, char *who)
Definition: dreamforge.c:904
void dreamforge_cmd_unban(char *name, char *nick)
Definition: dreamforge.c:1125
void dreamforge_cmd_privmsg(char *source, char *dest, char *buf)
Definition: dreamforge.c:787
void dreamforge_cmd_nc_change(User *u)
Definition: dreamforge.c:1151
void dreamforge_cmd_release_svshold(char *nick)
Definition: dreamforge.c:1069
void dreamforge_cmd_318(char *source, char *who)
Definition: dreamforge.c:913
void dreamforge_cmd_sgline(char *mask, char *reason)
Definition: dreamforge.c:1093
void dreamforge_cmd_bot_chan_mode(char *nick, char *chan)
Definition: dreamforge.c:649
void dreamforge_cmd_312(char *buf)
Definition: dreamforge.c:869
void dreamforge_cmd_serv_notice(char *source, char *dest, char *msg)
Definition: dreamforge.c:801
void dreamforge_cmd_ctcp(char *source, char *dest, char *buf)
Definition: dreamforge.c:1261
void dreamforge_cmd_311(char *buf)
Definition: dreamforge.c:859
void dreamforge_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: dreamforge.c:1052
int dreamforge_valid_nick(char *nick)
Definition: dreamforge.c:1244
void dreamforge_cmd_219(char *source, char *letter)
Definition: dreamforge.c:889
void dreamforge_cmd_remove_akill(char *user, char *host)
Definition: dreamforge.c:538
void dreamforge_cmd_372(char *source, char *msg)
Definition: dreamforge.c:1014
void dreamforge_cmd_svskill(char *source, char *user, char *buf)
Definition: dreamforge.c:582
void dreamforge_cmd_mode(char *source, char *dest, char *buf)
Definition: dreamforge.c:750
void dreamforge_cmd_svsnick(char *source, char *guest, time_t when)
Definition: dreamforge.c:1099
void dreamforge_cmd_svid_umode(char *nick, time_t ts)
Definition: dreamforge.c:1144
void dreamforge_cmd_svid_umode2(User *u, char *ts)
Definition: dreamforge.c:1157
void dreamforge_cmd_vhost_on(char *nick, char *vIdent, char *vhost)
Definition: dreamforge.c:1120
void dreamforge_cmd_pong(char *servname, char *who)
Definition: dreamforge.c:1047
void dreamforge_cmd_svsnoop(char *server, int set)
Definition: dreamforge.c:528
void dreamforge_cmd_join(char *user, char *channel, time_t chantime)
Definition: dreamforge.c:570
void dreamforge_cmd_svshold(char *nick)
Definition: dreamforge.c:1063
void dreamforge_cmd_317(char *buf)
Definition: dreamforge.c:879
void dreamforge_cmd_global(char *source, char *buf)
Definition: dreamforge.c:657
void dreamforge_cmd_211(char *buf)
Definition: dreamforge.c:943
void dreamforge_cmd_notice_ops(char *source, char *dest, char *buf)
Definition: dreamforge.c:759
void dreamforge_cmd_svso(char *source, char *nick, char *flag)
Definition: dreamforge.c:1115
void dreamforge_cmd_notice(char *source, char *dest, char *buf)
Definition: dreamforge.c:769
void dreamforge_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when)
Definition: dreamforge.c:543
void dreamforge_cmd_351(char *source)
Definition: dreamforge.c:811
void dreamforge_cmd_quit(char *source, char *buf)
Definition: dreamforge.c:820
void dreamforge_set_umode(User *user, int ac, char **av)
Definition: dreamforge.c:151
void dreamforge_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: dreamforge.c:1107
void dreamforge_cmd_sqline(char *mask, char *reason)
Definition: dreamforge.c:523
void dreamforge_cmd_372_error(char *source)
Definition: dreamforge.c:1019
void dreamforge_cmd_squit(char *servname, char *message)
Definition: dreamforge.c:602
void dreamforge_cmd_250(char *buf)
Definition: dreamforge.c:839
E int servernum
Definition: extern.h:615
void dreamforge_cmd_akill(char *user, char *host, char *who, time_t when, time_t expires, char *reason)
Definition: dreamforge.c:575
void dreamforge_cmd_kick(char *source, char *chan, char *user, char *buf)
Definition: dreamforge.c:962
void dreamforge_cmd_szline(char *mask, char *reason, char *whom)
Definition: dreamforge.c:1087
int dreamforge_flood_mode_check(char *value)
Definition: dreamforge.c:1211
void dreamforge_cmd_svid_umode3(User *u, char *ts)
Definition: dreamforge.c:1166
void dreamforge_cmd_invite(char *source, char *chan, char *nick)
Definition: dreamforge.c:1037
void dreamforge_cmd_243(char *buf)
Definition: dreamforge.c:933
void dreamforge_cmd_privmsg2(char *source, char *dest, char *msg)
Definition: dreamforge.c:796
void dreamforge_cmd_part(char *nick, char *chan, char *buf)
Definition: dreamforge.c:551
void dreamforge_cmd_svsmode(User *u, int ac, char **av)
Definition: dreamforge.c:595
void dreamforge_cmd_376(char *source)
Definition: dreamforge.c:1031
void dreamforge_cmd_bob()
Definition: dreamforge.c:644
void dreamforge_cmd_375(char *source)
Definition: dreamforge.c:1025
void dreamforge_cmd_connect(int servernum)
Definition: dreamforge.c:629
void dreamforge_cmd_307(char *buf)
Definition: dreamforge.c:849
void dreamforge_cmd_eob()
Definition: dreamforge.c:1216
void dreamforge_cmd_242(char *buf)
Definition: dreamforge.c:923
void dreamforge_cmd_vhost_off(User *u)
Definition: dreamforge.c:1137
void dreamforge_cmd_unsgline(char *mask)
Definition: dreamforge.c:1075
void dreamforge_cmd_notice2(char *source, char *dest, char *msg)
Definition: dreamforge.c:782
void dreamforge_cmd_unsqline(char *user)
Definition: dreamforge.c:565