1
0
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:
Adam-
2010-02-02 03:20:58 +00:00
parent aa4b3e2563
commit 122dcd082a
7 changed files with 30 additions and 2 deletions
+4 -2
View File
@@ -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));
}