mirror of
https://github.com/anope/anope.git
synced 2026-07-02 22:03:13 +02:00
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
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
|
||||
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user