summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-05 14:17:54 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-05 14:17:54 +0000
commit92bf0c800f29f617c9bce773f1e1b0c1bf7f2c8e (patch)
treeafc3daa8d38c32bf80844326c9dcdbc0de90e8d7
parent40c9226e3ab8ba9f7d2bad898961989f6905aca0 (diff)
Added an internal event called when a nick is requested
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2929 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--Changes1
-rw-r--r--docs/EVENTS4
-rw-r--r--include/events.h1
-rw-r--r--src/core/ns_register.c1
-rw-r--r--version.log3
5 files changed, 9 insertions, 1 deletions
diff --git a/Changes b/Changes
index d3bcfcd81..e27bb4f37 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,6 @@
Anope Version 1.8 - SVN
-----------------------
+5/5 A Added an internal event called when a nick is requested [ #00]
4/15 F Fixed os_info to backup its database on Windows [ #00]
4/15 F Fixed a potential crash in cs_clear ops [#1154]
4/16 F Fixed missing TS6SID on FJOIN in inspircd12 [ #00]
diff --git a/docs/EVENTS b/docs/EVENTS
index bc8af9dce..857296bcb 100644
--- a/docs/EVENTS
+++ b/docs/EVENTS
@@ -266,6 +266,10 @@ Anope Internal Events
A new channel has been registered.
av[0] The name of the channel that has been registered.
+ EVENT_NICK_REQUESTED
+ A new nick has been requested, and mail has been sent to confirm the nick.
+ av[0] The name of the nick that was requested
+
EVENT_CHAN_SUSPENDED
A channel has been suspended (ChanServ SUSPEND).
av[0] The name of the channel that has been suspended.
diff --git a/include/events.h b/include/events.h
index 014aeaf00..7f0b1b69e 100644
--- a/include/events.h
+++ b/include/events.h
@@ -42,6 +42,7 @@
#define EVENT_SHUTDOWN "shutdown"
#define EVENT_SIGNAL "signal"
#define EVENT_NICK_REGISTERED "nick_registered"
+#define EVENT_NICK_REQUESTED "nick_requested"
#define EVENT_NICK_DROPPED "nick_dropped"
#define EVENT_NICK_FORBIDDEN "nick_forbidden"
#define EVENT_NICK_EXPIRE "nick_expire"
diff --git a/src/core/ns_register.c b/src/core/ns_register.c
index 133d2bdf3..ec5cefdad 100644
--- a/src/core/ns_register.c
+++ b/src/core/ns_register.c
@@ -208,6 +208,7 @@ int do_register(User * u)
}
nr->requested = time(NULL);
if (NSEmailReg) {
+ send_event(EVENT_NICK_REQUESTED, 1, nr->nick);
if (do_sendregmail(u, nr) == 0) {
notice_lang(s_NickServ, u, NICK_ENTER_REG_CODE, email,
s_NickServ);
diff --git a/version.log b/version.log
index d818aefd4..228f16bad 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="2918"
+VERSION_BUILD="2929"
# $Log$ # Changes since the 1.8.4 Release
+#Revision 2929 - Added an internal event called when a nick is requested
#Revision 2918 - Fixed deleting nick requests to only delete the requested nick
#Revision 2903 - Removed some unnecessary redundant code in cs_clear
#Revision 2900 - Fixed /ns info to show when a nick expires to services opers, not only admins