summaryrefslogtreecommitdiff
path: root/src/protocol/ratbox.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-12-17 02:10:35 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-12-17 02:10:35 +0000
commit861fe9e7b32c8e1e523cc774547e460c9ed67289 (patch)
treeb821f00ef784751ff7c43771175b818fec4645bb /src/protocol/ratbox.c
parent453963eeaeb4232df3e331522408034606cfefd6 (diff)
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
Diffstat (limited to 'src/protocol/ratbox.c')
-rw-r--r--src/protocol/ratbox.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c
index 3996bf736..f10c86206 100644
--- a/src/protocol/ratbox.c
+++ b/src/protocol/ratbox.c
@@ -219,7 +219,7 @@ class RatboxProto : public IRCDTS6Proto
void SendSVSMode(User *u, int ac, const char **av)
{
- this->SendModeInternal(u, merge_args(ac, av));
+ this->SendModeInternal(NULL, u, merge_args(ac, av));
}
/* SERVER name hop descript */
@@ -259,19 +259,19 @@ class RatboxProto : public IRCDTS6Proto
send_cmd(TS6SID, "%03d %s %s", numeric, dest, buf);
}
- void SendModeInternal(BotInfo *bi, const char *dest, const char *buf)
+ void SendModeInternal(BotInfo *bi, Channel *dest, const char *buf)
{
if (bi)
{
- send_cmd(bi->uid, "MODE %s %s", dest, buf);
+ send_cmd(bi->uid, "MODE %s %s", dest->name, buf);
}
- else send_cmd(TS6SID, "MODE %s %s", dest, buf);
+ else send_cmd(TS6SID, "MODE %s %s", dest->name, buf);
}
- void SendModeInternal(User *u, const char *buf)
+ void SendModeInternal(BotInfo *bi, User *u, const char *buf)
{
if (!buf) return;
- send_cmd(TS6SID, "SVSMODE %s %s", u->nick, buf);
+ send_cmd(bi ? bi->uid : TS6SID, "SVSMODE %s %s", u->nick, buf);
}
void SendKickInternal(BotInfo *bi, Channel *chan, User *user, const char *buf)