1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 15:46:37 +02:00

Allow bot usermodes to be configurable

This commit is contained in:
Adam
2011-08-12 03:13:56 -04:00
parent 54710a782b
commit feee50e695
24 changed files with 150 additions and 31 deletions
+7 -1
View File
@@ -55,6 +55,12 @@ Server::Server(Server *uplink, const Anope::string &name, unsigned hops, const A
/* Load MLock from the database now that we know what modes exist */
for (registered_channel_map::iterator it = RegisteredChannelList.begin(), it_end = RegisteredChannelList.end(); it != it_end; ++it)
it->second->LoadMLock();
for (botinfo_map::iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it)
{
BotInfo *bi = it->second;
Anope::string modes = !bi->botmodes.empty() ? ("+" + bi->botmodes) : ircd->pseudoclient_mode;
bi->SetModesInternal(modes.c_str());
}
ircdproto->SendBOB();
@@ -71,7 +77,7 @@ Server::Server(Server *uplink, const Anope::string &name, unsigned hops, const A
{
User *u = it->second;
ircdproto->SendClientIntroduction(u, ircd->pseudoclient_mode);
ircdproto->SendClientIntroduction(u);
BotInfo *bi = findbot(u->nick);
if (bi)