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,
65 const char *pattern, ...);
67 /* Send command to all servers interested in a channel */
68 extern void sendcmdto_channel_servers_butone(struct Client *from,
74 const char *pattern, ...);
76 /* Send command to all interested channel users */
77 extern void sendcmdto_channel_butone(struct Client *from, const char *cmd,
78 const char *tok, struct Channel *to,
79 struct Client *one, unsigned int skip,
80 const char *pattern, ...);
82 #define SKIP_DEAF 0x01 /* skip users that are +d */
83 #define SKIP_BURST 0x02 /* skip users that are bursting */
84 #define SKIP_NONOPS 0x04 /* skip users that aren't chanops */
85 #define SKIP_NONVOICES 0x08 /* skip users that aren't voiced (includes
88 /* Send command to all users having a particular flag set */
89 extern void sendwallto_group_butone(struct Client *from, int type,
90 struct Client *one, const char *pattern,
93 #define WALL_DESYNCH 1
94 #define WALL_WALLOPS 2
95 #define WALL_WALLUSERS 3
97 /* Send command to all matching clients */
98 extern void sendcmdto_match_butone(struct Client *from, const char *cmd,
99 const char *tok, const char *to,
100 struct Client *one, unsigned int who,
101 const char *pattern, ...);
103 /* Send server notice to opers but one--one can be NULL */
104 extern void sendto_opmask_butone(struct Client *one, unsigned int mask,
105 const char *pattern, ...);
107 /* Same as above, but rate limited */
108 extern void sendto_opmask_butone_ratelimited(struct Client *one,
109 unsigned int mask, time_t *rate,
110 const char *pattern, ...);
112 /* Same as above, but with variable argument list */
113 extern void vsendto_opmask_butone(struct Client *one, unsigned int mask,
114 const char *pattern, va_list vl);
116 #endif /* INCLUDED_send_h */