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
21 extern void send_buffer(struct Client* to, struct MsgBuf* buf, int prio);
23 extern void flush_connections(struct Client* cptr);
24 extern void send_queued(struct Client *to);
26 /* Send a raw message to one client; USE ONLY IF YOU MUST SEND SOMETHING
29 extern void sendrawto_one(struct Client *to, const char *pattern, ...);
31 /* Send a command to one client */
32 extern void sendcmdto_one(struct Client *from, const char *cmd,
33 const char *tok, struct Client *to,
34 const char *pattern, ...);
37 /* Same as above, except it takes a va_list */
38 extern void vsendcmdto_one(struct Client *from, const char *cmd,
39 const char *tok, struct Client *to,
40 const char *pattern, va_list vl);
42 /* Send command to all servers except one */
43 extern void sendcmdto_serv_butone(struct Client *from, const char *cmd,
44 const char *tok, struct Client *one,
45 const char *pattern, ...);
47 /* Send command to all channels user is on */
48 extern void sendcmdto_common_channels(struct Client *from, const char *cmd,
49 const char *tok, const char *pattern,
53 /* Send command to all channel users on this server */
54 extern void sendcmdto_channel_butserv(struct Client *from, const char *cmd,
55 const char *tok, struct Channel *to,
56 const char *pattern, ...);
58 /* Send command to all interested channel users */
59 extern void sendcmdto_channel_butone(struct Client *from, const char *cmd,
60 const char *tok, struct Channel *to,
61 struct Client *one, unsigned int skip,
62 const char *pattern, ...);
64 #define SKIP_DEAF 0x01 /* skip users that are +d */
65 #define SKIP_BURST 0x02 /* skip users that are bursting */
66 #define SKIP_NONOPS 0x04 /* skip users that aren't chanops */
68 /* Send command to all users having a particular flag set */
69 extern void sendcmdto_flag_butone(struct Client *from, const char *cmd,
70 const char *tok, struct Client *one,
71 unsigned int flag, const char *pattern, ...);
73 /* Send command to all matching clients */
74 extern void sendcmdto_match_butone(struct Client *from, const char *cmd,
75 const char *tok, const char *to,
76 struct Client *one, unsigned int who,
77 const char *pattern, ...);
79 /* Send server notice to opers but one--one can be NULL */
80 extern void sendto_opmask_butone(struct Client *one, unsigned int mask,
81 const char *pattern, ...);
83 /* Same as above, but with variable argument list */
84 extern void vsendto_opmask_butone(struct Client *one, unsigned int mask,
85 const char *pattern, va_list vl);
87 #endif /* INCLUDED_send_h */