mirror of
https://github.com/anope/anope.git
synced 2026-06-30 09:36:37 +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:
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user