diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-02 03:20:58 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-02 03:20:58 +0000 |
| commit | 122dcd082ae1ad01e953d0488f9fc41a4e0566a3 (patch) | |
| tree | 2aaf07248f4307cd58a123dbd63cab8ae72031c7 /src/botserv.c | |
| parent | aa4b3e256377030d291fc2d5f4db94985ce04395 (diff) | |
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
Diffstat (limited to 'src/botserv.c')
| -rw-r--r-- | src/botserv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/botserv.c b/src/botserv.c index 74066fe9a..24321f559 100644 --- a/src/botserv.c +++ b/src/botserv.c @@ -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)); } |
