Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / send.c
index e118b0721ad40c7cccb389d5e5abf1a91ab1fb7a..17bbcf5e6b70a128675c5e47a1615a4fa4fc3fc6 100644 (file)
@@ -989,6 +989,22 @@ void sendto_highprot_butone(struct Client *cptr, int p, const char *pattern, ...
   va_end(vl);
 }
 
+/*
+ * Send a raw command to a single client; use *ONLY* if you absolutely
+ * must send a command without a prefix.
+ */
+void sendrawto_one(struct Client *to, const char *pattern, ...)
+{
+  char sndbuf[IRC_BUFSIZE];
+  va_list vl;
+
+  va_start(vl, pattern);
+  ircd_vsnprintf(to, sndbuf, sizeof(sndbuf) - 2, pattern, vl);
+  va_end(vl);
+
+  send_buffer(to, sndbuf);
+}
+
 /*
  * Send a (prefixed) command to a single client; select which of <cmd>
  * <tok> to use depending on if to is a server or not.  <from> is the