6 #ifndef INCLUDED_send_h
7 #define INCLUDED_send_h
8 #ifndef INCLUDED_stdarg_h
9 #include <stdarg.h> /* va_list */
10 #define INCLUDED_stdarg_h
12 #ifndef INCLUDED_time_h
13 #include <time.h> /* time_t */
14 #define INCLUDED_time_h
25 extern void send_buffer(struct Client* to, struct MsgBuf* buf, int prio);
27 extern void kill_highest_sendq(int servers_too);
28 extern void flush_connections(struct Client* cptr);
29 extern void send_queued(struct Client *to);
31 /* Send a raw message to one client; USE ONLY IF YOU MUST SEND SOMETHING
34 extern void sendrawto_one(struct Client *to, const char *pattern, ...);
36 /* Send a command to one client */
37 extern void sendcmdto_one(struct Client *from, const char *cmd,
38 const char *tok, struct Client *to,
39 const char *pattern, ...);
41 /* Same as above, except it puts the message on the priority queue */
42 extern void sendcmdto_prio_one(struct Client *from, const char *cmd,
43 const char *tok, struct Client *to,
44 const char *pattern, ...);
46 /* Send command to all servers except one */
47 extern void sendcmdto_serv_butone(struct Client *from, const char *cmd,
48 const char *tok, struct Client *one,
49 const char *pattern, ...);
51 /* Send command to all channels user is on */
52 extern void sendcmdto_common_channels_butone(struct Client *from,
56 const char *pattern, ...);
58 /* Send command to all channel users on this server */
59 extern void sendcmdto_channel_butserv_butone(struct Client *from,
64 const char *pattern, ...);
66 /* Send command to all interested channel users */
67 extern void sendcmdto_channel_butone(struct Client *from, const char *cmd,
68 const char *tok, struct Channel *to,
69 struct Client *one, unsigned int skip,
70 const char *pattern, ...);
72 #define SKIP_DEAF 0x01 /* skip users that are +d */
73 #define SKIP_BURST 0x02 /* skip users that are bursting */
74 #define SKIP_NONOPS 0x04 /* skip users that aren't chanops */
75 #define SKIP_NONVOICES 0x08 /* skip users that aren't voiced (includes
78 /* Send command to all users having a particular flag set */
79 extern void sendwallto_group_butone(struct Client *from, int type,
80 struct Client *one, const char *pattern,
83 #define WALL_DESYNCH 1
84 #define WALL_WALLOPS 2
85 #define WALL_WALLUSERS 3
87 /* Send command to all matching clients */
88 extern void sendcmdto_match_butone(struct Client *from, const char *cmd,
89 const char *tok, const char *to,
90 struct Client *one, unsigned int who,
91 const char *pattern, ...);
93 /* Send server notice to opers but one--one can be NULL */
94 extern void sendto_opmask_butone(struct Client *one, unsigned int mask,
95 const char *pattern, ...);
97 /* Same as above, but rate limited */
98 extern void sendto_opmask_butone_ratelimited(struct Client *one,
99 unsigned int mask, time_t *rate,
100 const char *pattern, ...);
102 /* Same as above, but with variable argument list */
103 extern void vsendto_opmask_butone(struct Client *one, unsigned int mask,
104 const char *pattern, va_list vl);
106 #endif /* INCLUDED_send_h */