summaryrefslogtreecommitdiff
path: root/src/rageircd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rageircd.c')
-rw-r--r--src/rageircd.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/rageircd.c b/src/rageircd.c
index 3a470be7a..d10a76728 100644
--- a/src/rageircd.c
+++ b/src/rageircd.c
@@ -1615,4 +1615,25 @@ int anope_valid_nick(char *nick)
return 1;
}
+void anope_cmd_ctcp(char *source, char *dest, const char *fmt, ...)
+{
+ va_list args;
+ char buf[BUFSIZE];
+ char *s;
+ *buf = '\0';
+
+ if (fmt) {
+ va_start(args, fmt);
+ vsnprintf(buf, BUFSIZE - 1, fmt, args);
+ va_end(args);
+ }
+ if (!buf) {
+ return;
+ } else {
+ s = normalizeBuffer(buf);
+ }
+
+ send_cmd(source, "%s NOTICE :\1%s \1", dest, s);
+}
+
#endif