-extern void vsendto_one(struct Client *to, const char* fmt, va_list vl);
-extern void sendto_channel_butone(struct Client *one, struct Client *from,
- struct Channel *chptr, const char* fmt, ...);
-extern void sendmsgto_channel_butone(struct Client *one, struct Client *from,
- struct Channel *chptr, const char *sender,
- const char *cmd, const char *chname, const char *msg);
-extern void sendto_lchanops_butone(struct Client *one, struct Client *from,
- struct Channel *chptr, const char* fmt, ...);
-extern void sendto_chanopsserv_butone(struct Client *one, struct Client *from,
- struct Channel *chptr, const char* fmt, ...);
-extern void sendto_common_channels(struct Client *user, const char* fmt, ...);
-extern void sendto_match_butone(struct Client *one, struct Client *from,
- const char *mask, int what, const char* fmt, ...);
-extern void sendto_lops_butone(struct Client *one, const char* fmt, ...);
-extern void vsendto_ops(const char *pattern, va_list vl);
-extern void sendto_ops_butone(struct Client *one, struct Client *from,
- const char* fmt, ...);
-extern void sendto_g_serv_butone(struct Client *one, const char* fmt, ...);
-extern void sendto_realops(const char* fmt, ...);
-extern void vsendto_op_mask(unsigned int mask,
- const char* fmt, va_list vl);
-extern void sendto_op_mask(unsigned int mask, const char* fmt, ...);
-extern void sendbufto_op_mask(unsigned int mask);
-extern void sendbufto_serv_butone(struct Client *one);
-
-extern char sendbuf[2048];
-
-#define IRC_BUFSIZE 512
-
-extern void sendcmdto_one(struct Client *one, const char *cmd,
- const char *tok, struct Client *from,
- const char *fmt, ...);
-extern void vsendcmdto_one(struct Client *one, const char *cmd,
- const char *tok, struct Client *from,
- const char *fmt, va_list vl);
-extern void sendcmdto_serv_butone(struct Client *one, const char *cmd,
- const char *tok, struct Client *from,
- const char *fmt, ...);
-extern void sendcmdto_common_channels(struct Client *cptr, const char *cmd,
- const char *tok, const char *pattern,
- ...);
-extern void sendcmdto_channel_butserv(struct Channel *chan, const char *cmd,
- const char *tok, struct Client *from,
- const char *pattern, ...);
-extern void sendcmdto_channel_butone(struct Client *one, struct Channel *chan,
- const char *cmd, const char *tok,
- struct Client *from, unsigned int skip,
+
+/* Send a raw message to one client; USE ONLY IF YOU MUST SEND SOMETHING
+ * WITHOUT A PREFIX!
+ */
+extern void sendrawto_one(struct Client *to, const char *pattern, ...);
+
+/* Send a command to one client */
+extern void sendcmdto_one(struct Client *from, const char *cmd,
+ const char *tok, struct Client *to,
+ const char *pattern, ...);
+
+/* Same as above, except it puts the message on the priority queue */
+extern void sendcmdto_prio_one(struct Client *from, const char *cmd,
+ const char *tok, struct Client *to,
+ const char *pattern, ...);
+
+/* Send command to servers by flags except one */
+extern void sendcmdto_flag_serv_butone(struct Client *from, const char *cmd,
+ const char *tok, struct Client *one,
+ int require, int forbid,
+ const char *pattern, ...);
+
+/* Send command to all servers except one */
+extern void sendcmdto_serv_butone(struct Client *from, const char *cmd,
+ const char *tok, struct Client *one,
+ const char *pattern, ...);
+
+/* Send command to all channels user is on */
+extern void sendcmdto_common_channels_butone(struct Client *from,
+ const char *cmd,
+ const char *tok,
+ struct Client *one,
+ const char *pattern, ...);
+
+/* Send command to all channel users on this server */
+extern void sendcmdto_channel_butserv_butone(struct Client *from,
+ const char *cmd,
+ const char *tok,
+ struct Channel *to,
+ struct Client *one,
+ unsigned int skip,
+ const char *pattern, ...);
+
+/* Send command to all servers interested in a channel */
+extern void sendcmdto_channel_servers_butone(struct Client *from,
+ const char *cmd,
+ const char *tok,
+ struct Channel *to,
+ struct Client *one,
+ unsigned int skip,
+ const char *pattern, ...);
+
+/* Send command to all interested channel users */
+extern void sendcmdto_channel_butone(struct Client *from, const char *cmd,
+ const char *tok, struct Channel *to,
+ struct Client *one, unsigned int skip,