diff options
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r-- | src/protocol.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp index cf47bb61d..e80254863 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -75,6 +75,16 @@ void IRCDProto::SendMode(BotInfo *bi, const char *dest, const char *fmt, ...) SendModeInternal(bi, dest, buf); } +void IRCDProto::SendMode(User *u, const char *fmt, ...) +{ + va_list args; + char buf[BUFSIZE] = ""; + va_start(args, fmt); + vsnprintf(buf, BUFSIZE - 1, fmt, args); + va_end(args); + SendModeInternal(u, buf); +} + void IRCDProto::SendKick(BotInfo *bi, const char *chan, const char *user, const char *fmt, ...) { va_list args; |