summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-12-12 20:21:59 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-12-12 20:21:59 +0000
commitee5559be07a5c5de2d870f3bc27cd2fb95b9f30b (patch)
tree6431d85abe3f3d31d9ebffd4d85bfd34cd97ef89
parent3fb604b1c7c910489bb52939e8f20b71560eb2e6 (diff)
BUILD : 1.7.17 (1208) BUGS : N/A NOTES : EVENT_BOT_KICK and EVENT_BOT_ADD added
git-svn-id: svn://svn.anope.org/anope/trunk@1208 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@927 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--Changes1
-rw-r--r--docs/EVENTS12
-rw-r--r--include/events.h2
-rw-r--r--src/botserv.c2
-rw-r--r--version.log6
5 files changed, 22 insertions, 1 deletions
diff --git a/Changes b/Changes
index 70597ac71..c1725ba92 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,7 @@
Anope Version S V N
--------------------
12/09 A Ability to see if AutoOp is enabled in NickServ INFO displays. [#621]
+12/12 A EVENT_BOT_KICK and EVENT_BOT_BAN added for modules. [ #00]
10/17 F Encryption, users can now pick none, old, md5 or sha1. [ #00]
10/18 F MLock support for +c was missing on ultimate3. [ #00]
10/20 F Error message when unable to register due to NSRegDelay. [#616]
diff --git a/docs/EVENTS b/docs/EVENTS
index 80bba31c0..deca9250f 100644
--- a/docs/EVENTS
+++ b/docs/EVENTS
@@ -176,6 +176,12 @@ Anope Internal Events
av[0] Name of the channel the bot has been assigned to.
av[1] The nickname of the bot that has been assigned to the channel.
+ EVENT_BOT_BAN
+ A BotServ bot has banned a user, e.g. kickers.
+ av[0] The nick of the user banned.
+ av[1] The Channel the user was banned from.
+ av[2] The mask that was banned.
+
EVENT_BOT_CHANGE
The properties of a BotServ bot have been changed.
av[0] The nickname of the bot involved.
@@ -221,6 +227,12 @@ Anope Internal Events
av[0] The channel name the bot has just joined.
av[1] The nickname of the bot that has joined the channel.
+ EVENT_BOT_KICK
+ A BotServ bot has kicked a user from a channel.
+ av[0] The name of the user that has been kicked.
+ av[1] The name of the channel the user was kicked from.
+ av[2] The reason for the kick.
+
EVENT_BOT_UNASSIGN
A BotServ bot is being unassigned from a channel. This event is being
sent before the actual removing of the bot is done.
diff --git a/include/events.h b/include/events.h
index bfee9a0e1..aa0d2ec55 100644
--- a/include/events.h
+++ b/include/events.h
@@ -26,6 +26,8 @@
#define EVENT_BOT_FANTASY_NO_ACCESS "bot_command_no_access"
#define EVENT_BOT_DEL "bot_del"
#define EVENT_BOT_ASSIGN "bot_assign"
+#define EVENT_BOT_KICK "bot_kick"
+#define EVENT_BOT_BAN "bot_ban"
#define EVENT_TOPIC_UPDATED "chan_topic_updated"
#define EVENT_CHAN_EXPIRE "chan_expire"
#define EVENT_CHAN_REGISTERED "chan_registered"
diff --git a/src/botserv.c b/src/botserv.c
index 2a7ea4f60..7997d866d 100644
--- a/src/botserv.c
+++ b/src/botserv.c
@@ -831,6 +831,7 @@ static void check_ban(ChannelInfo * ci, User * u, int ttbtype)
av[2] = mask;
anope_cmd_mode(ci->bi->nick, av[0], "+b %s", av[2]);
do_cmode(ci->bi->nick, 3, av);
+ send_event(EVENT_BOT_BAN,3,u->nick, ci->name, mask);
free(av[1]);
}
}
@@ -861,6 +862,7 @@ static void bot_kick(ChannelInfo * ci, User * u, int message, ...)
av[2] = buf;
anope_cmd_kick(ci->bi->nick, av[0], av[1], "%s", av[2]);
do_kick(ci->bi->nick, 3, av);
+ send_event(EVENT_BOT_KICK,3,u->nick,ci->name,buf);
}
/*************************************************************************/
diff --git a/version.log b/version.log
index 32a5a5eb7..62b17071f 100644
--- a/version.log
+++ b/version.log
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="17"
VERSION_EXTRA="-svn"
-VERSION_BUILD="1207"
+VERSION_BUILD="1208"
# $Log$
#
+# BUILD : 1.7.17 (1208)
+# BUGS : N/A
+# NOTES : EVENT_BOT_KICK and EVENT_BOT_ADD added
+#
# BUILD : 1.7.17 (1207)
# BUGS : 641
# NOTES : Fixed EVENT_TOPIC_UPDATED not being sent when the topic was updated from within certain protocol modules