1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-02 17:33:14 +02:00

- Added HOOKTYPE_REMOTE_NICKCHANGE (called like: cptr, sptr, newnick).

This commit is contained in:
Bram Matthys
2003-10-25 18:51:49 +00:00
parent d64fb8dbab
commit ff85a1f7b4
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -2499,3 +2499,4 @@ seen. gmtime warning still there
- Module coders: changed 'allowed' callback function for umodes&snomasks,
from 'aClient *sptr' to 'aClient *sptr, int what'.
'what' will be MODE_ADD if trying to add and MODE_DEL if trying to remove.
- Added HOOKTYPE_REMOTE_NICKCHANGE (called like: cptr, sptr, newnick).
+1
View File
@@ -463,6 +463,7 @@ int CallCmdoverride(Cmdoverride *ovr, aClient *cptr, aClient *sptr, int parc, ch
#define HOOKTYPE_PRE_LOCAL_JOIN 28
#define HOOKTYPE_PRE_LOCAL_KICK 29
#define HOOKTYPE_PRE_LOCAL_TOPIC 30
#define HOOKTYPE_REMOTE_NICKCHANGE 31
/* Module flags */
#define MODFLAG_NONE 0x0000
+2
View File
@@ -1706,6 +1706,8 @@ CMD_FUNC(m_nick)
sendto_snomask(SNO_NICKCHANGE, "*** Notice -- %s (%s@%s) has changed his/her nickname to %s", sptr->name, sptr->user->username, sptr->user->realhost, nick);
RunHook2(HOOKTYPE_LOCAL_NICKCHANGE, sptr, nick);
} else {
RunHook3(HOOKTYPE_REMOTE_NICKCHANGE, cptr, sptr, nick);
}
/*
* Client just changing his/her nick. If he/she is