From 1b636ed4ff0a03a4dd21bbf09ce5c9b79662cac9 Mon Sep 17 00:00:00 2001 From: phil-lavin Date: Wed, 19 May 2010 21:16:20 +0000 Subject: [PATCH] Extension to r2952 adding logging for BS BOT git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2969 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/bs_bot.c | 8 ++++++++ version.log | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c index 4be026289..7feedfb87 100644 --- a/src/core/bs_bot.c +++ b/src/core/bs_bot.c @@ -169,6 +169,9 @@ int do_bot(User * u) anope_cmd_bot_nick(bi->nick, bi->user, bi->host, bi->real, ircd->botserv_bot_mode); + alog("%s: %s!%s@%s added bot %s!%s@%s (%s) to the bot list", + s_BotServ, u->nick, u->username, u->host, bi->nick, bi->user, + bi->host, bi->real); notice_lang(s_BotServ, u, BOT_BOT_ADDED, bi->nick, bi->user, bi->host, bi->real); @@ -310,6 +313,9 @@ int do_bot(User * u) bot_rejoin_all(bi); } + alog("%s: %s!%s@%s changed bot %s to: %s!%s@%s (%s)", + s_BotServ, u->nick, u->username, u->host, oldnick, bi->nick, bi->user, + bi->host, bi->real); notice_lang(s_BotServ, u, BOT_BOT_CHANGED, oldnick, bi->nick, bi->user, bi->host, bi->real); @@ -334,6 +340,8 @@ int do_bot(User * u) } delbot(bi); + alog("%s: %s!%s@%s deleted bot %s from the bot list", + s_BotServ, u->nick, u->username, u->host, nick); notice_lang(s_BotServ, u, BOT_BOT_DELETED, nick); } } else diff --git a/version.log b/version.log index 0fd31d0d8..a8b35033e 100644 --- a/version.log +++ b/version.log @@ -9,9 +9,10 @@ VERSION_MAJOR="1" VERSION_MINOR="8" VERSION_PATCH="4" VERSION_EXTRA="-svn" -VERSION_BUILD="2966" +VERSION_BUILD="2969" # $Log$ # Changes since the 1.8.4 Release +#Revision 2969 - Extension to r2952 adding logging for BS BOT #Revision 2966 - Fixed English in e-mail messages #Revision 2962 - Fixed bug with r2952 (%s was used rather than %d) #Revision 2952 - Added a tonne of alog()s to log all stateful commands