diff options
Diffstat (limited to 'src/ultimate3.c')
| -rw-r--r-- | src/ultimate3.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/ultimate3.c b/src/ultimate3.c index e70daeb72..3b6dcb2a3 100644 --- a/src/ultimate3.c +++ b/src/ultimate3.c @@ -1782,4 +1782,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 |
