mirror of
https://github.com/anope/anope.git
synced 2026-07-07 22:43:12 +02:00
Added options:botmodes to configure what modes BotServ bots should use in channels
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2778 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+4
-2
@@ -644,8 +644,10 @@ void bot_join(ChannelInfo * ci)
|
||||
ci->bi->nick.c_str(), ci->bi->nick.c_str());
|
||||
}
|
||||
ircdproto->SendJoin(ci->bi, ci->c->name.c_str(), ci->c->creation_time);
|
||||
ci->c->SetMode(NULL, CMODE_PROTECT, ci->bi->nick);
|
||||
ci->c->SetMode(NULL, CMODE_OP, ci->bi->nick);
|
||||
for (std::list<ChannelModeStatus *>::iterator it = BotModes.begin(); it != BotModes.end(); ++it)
|
||||
{
|
||||
ci->c->SetMode(ci->bi, *it, ci->bi->nick, false);
|
||||
}
|
||||
FOREACH_MOD(I_OnBotJoin, OnBotJoin(ci, ci->bi));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user