1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 07:23:14 +02:00

Rewrote all of the command handling to get rid of all the nasty strtoks() everywhere, and added a bot map by uid

This commit is contained in:
Adam
2010-05-29 20:44:31 -04:00
committed by Adam
parent 435c9116e9
commit b8f9116b19
24 changed files with 371 additions and 398 deletions
+2 -2
View File
@@ -188,7 +188,7 @@ void do_restart_services()
if (!quitmsg)
quitmsg = "Restarting";
/* Send a quit for all of our bots */
for (botinfo_map::const_iterator it = BotList.begin(); it != BotList.end(); ++it)
for (botinfo_map::const_iterator it = BotListByNick.begin(); it != BotListByNick.end(); ++it)
{
/* Don't use quitmsg here, it may contain information you don't want people to see */
ircdproto->SendQuit(it->second, "Restarting");
@@ -228,7 +228,7 @@ static void services_shutdown()
if (started && UplinkSock)
{
/* Send a quit for all of our bots */
for (botinfo_map::const_iterator it = BotList.begin(); it != BotList.end(); ++it)
for (botinfo_map::const_iterator it = BotListByNick.begin(); it != BotListByNick.end(); ++it)
{
/* Don't use quitmsg here, it may contain information you don't want people to see */
ircdproto->SendQuit(it->second, "Shutting down");