1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 18:06:39 +02:00

Added BotInfo* sender arg to all of the User mode functions, changed IRcdProto::SendMode for channels to accept a Channel pointer and fixed unsetting users vhosts on Unreal

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2710 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2009-12-17 02:10:35 +00:00
parent 453963eeae
commit 861fe9e7b3
16 changed files with 104 additions and 85 deletions
+3 -3
View File
@@ -67,7 +67,7 @@ void IRCDProto::SendSVSKill(BotInfo *source, User *user, const char *fmt, ...)
SendSVSKillInternal(source, user, buf);
}
void IRCDProto::SendMode(BotInfo *bi, const char *dest, const char *fmt, ...)
void IRCDProto::SendMode(BotInfo *bi, Channel *dest, const char *fmt, ...)
{
va_list args;
char buf[BUFSIZE] = "";
@@ -77,14 +77,14 @@ void IRCDProto::SendMode(BotInfo *bi, const char *dest, const char *fmt, ...)
SendModeInternal(bi, dest, buf);
}
void IRCDProto::SendMode(User *u, const char *fmt, ...)
void IRCDProto::SendMode(BotInfo *bi, 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);
SendModeInternal(bi, u, buf);
}
void IRCDProto::SendKick(BotInfo *bi, Channel *chan, User *user, const char *fmt, ...)