mirror of
https://github.com/anope/anope.git
synced 2026-07-05 12:43:13 +02:00
Added param to EVENT_CHANGE_NICK for old nickname
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2978 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -5,6 +5,7 @@ Anope Version 1.8 - SVN
|
||||
5/12 A Added logging for stateful commands [ #00]
|
||||
5/22 A Added an internal event called when a nick is ghosted [ #00]
|
||||
5/22 A Added an internal event called when a nick is recovered [ #00]
|
||||
5/23 A Added old nick parameter to EVENT_CHANGE_NICK [ #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]
|
||||
|
||||
+3
-1
@@ -280,7 +280,9 @@ Anope Internal Events
|
||||
|
||||
EVENT_CHANGE_NICK
|
||||
A user has just changed it's nick.
|
||||
av[0] The new nickname of the user.
|
||||
av[0] The new nickname of the user. Event is called after the user has been changed
|
||||
to this nickname.
|
||||
av[1] The old nickname of the user.
|
||||
|
||||
EVENT_CONNECT
|
||||
This event is emitted when the connection to our uplink hub is being
|
||||
|
||||
+4
-1
@@ -510,6 +510,7 @@ User *do_nick(const char *source, char *nick, char *username, char *host,
|
||||
int status = 0; /* Status to apply */
|
||||
char mask[USERMAX + HOSTMAX + 2];
|
||||
char *logrealname;
|
||||
char *oldnick;
|
||||
|
||||
if (!*source) {
|
||||
char ipbuf[16];
|
||||
@@ -743,8 +744,10 @@ User *do_nick(const char *source, char *nick, char *username, char *host,
|
||||
cancel_user(user);
|
||||
}
|
||||
|
||||
oldnick = sstrdup(user->nick);
|
||||
change_user_nick(user, nick);
|
||||
send_event(EVENT_CHANGE_NICK, 1, nick);
|
||||
send_event(EVENT_CHANGE_NICK, 2, nick, oldnick);
|
||||
free(oldnick);
|
||||
|
||||
if ((old_na ? old_na->nc : NULL) ==
|
||||
(user->na ? user->na->nc : NULL))
|
||||
|
||||
+2
-1
@@ -9,9 +9,10 @@ VERSION_MAJOR="1"
|
||||
VERSION_MINOR="8"
|
||||
VERSION_PATCH="4"
|
||||
VERSION_EXTRA="-svn"
|
||||
VERSION_BUILD="2976"
|
||||
VERSION_BUILD="2978"
|
||||
|
||||
# $Log$ # Changes since the 1.8.4 Release
|
||||
#Revision 2978 - Added param to EVENT_CHANGE_NICK for old nickname
|
||||
#Revision 2976 - Added internal events called when nick is ghosted and when nick is recovered
|
||||
#Revision 2969 - Extension to r2952 adding logging for BS BOT
|
||||
#Revision 2966 - Fixed English in e-mail messages
|
||||
|
||||
Reference in New Issue
Block a user