mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-06 11:53:12 +02:00
- internal: Added GetIP() which we will now use instead of all the Inet_ia2p() stuff
because it's slightly faster (already replaced all of them in src/s_kline.c).
GetIP(acptr) will return the ip for local users and remote users that support NICKIP,
it returns NULL for remote users that are on non-NICKIP servers (or have non-NICKIP
servers along their path).
- internal: tkl_add_line now returns aTKline *
- Added some more hooks:
- HOOKTYPE_TKL_ADD [aClient *cptr, aClient *sptr, aTKline *tk]
- HOOKTYPE_TKL_DEL [aClient *cptr, aClient *sptr, aTKline *tk]
NOTE: 'NULL, NULL, tk' is used for *lines that are removed due to expiring
- HOOKTYPE_LOCAL_KILL [aClient *sptr, aClient *target, char *comment]
This commit is contained in:
@@ -323,6 +323,8 @@ DLLFUNC int m_kill(aClient *cptr, aClient *sptr, int parc, char *parv[])
|
||||
(void)ircsprintf(buf2, "Killed (%s)", killer);
|
||||
}
|
||||
|
||||
if (MyClient(sptr))
|
||||
RunHook3(HOOKTYPE_LOCAL_KILL, sptr, acptr, parv[2]);
|
||||
if (exit_client(cptr, acptr, sptr, buf2) == FLUSH_BUFFER)
|
||||
return FLUSH_BUFFER;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user