summaryrefslogtreecommitdiff
path: root/src/modes.cpp
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/modes.cpp
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/modes.cpp')
-rw-r--r--src/modes.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modes.cpp b/src/modes.cpp
index 57780985c..90a3a648c 100644
--- a/src/modes.cpp
+++ b/src/modes.cpp
@@ -243,7 +243,7 @@ void ChannelModeBan::AddMask(Channel *chan, const char *mask)
if (entry_match(ban, bi->nick, bi->user, bi->host, 0))
{
- ircdproto->SendMode(bi, chan->name, "-b %s", mask);
+ ircdproto->SendMode(bi, chan, "-b %s", mask);
entry_delete(chan->bans, ban);
return;
}
@@ -820,9 +820,9 @@ void ModeManager::ProcessModes()
for (std::list<std::string>::iterator lit = ModeStrings.begin(); lit != ModeStrings.end(); ++lit)
{
if (c)
- ircdproto->SendMode(s->bi, c->name, lit->c_str());
+ ircdproto->SendMode(s->bi, c, lit->c_str());
else if (u)
- ircdproto->SendMode(u, lit->c_str());
+ ircdproto->SendMode(s->bi, u, lit->c_str());
}
delete it->second;
}