- Added HOOKTYPE_UMODE_CHANGE (sptr, oldflags, newflags) - this may

not be accurate as umode changes are done manually many places.
This commit is contained in:
stskeeps 2004-02-16 10:03:32 +00:00
parent 794ce094a4
commit f33bfea7b2
3 changed files with 5 additions and 0 deletions

View file

@ -2870,3 +2870,5 @@ seen. gmtime warning still there
by non-netadmin ircops in some (many) cases, reported by Zell (#0001541).
- Removed reference to SVSTIME from help.conf (it's actually /tsctl svstime)
(#0001540) reported by penna and DukePyrolator.
- Added HOOKTYPE_UMODE_CHANGE (sptr, oldflags, newflags) - this may
not be accurate as umode changes are done manually many places.

View file

@ -528,6 +528,7 @@ int CallCmdoverride(Cmdoverride *ovr, aClient *cptr, aClient *sptr, int parc, ch
#define HOOKTYPE_CHANNEL_DESTROY 33
#define HOOKTYPE_REMOTE_CHANMODE 34
#define HOOKTYPE_TKL_EXCEPT 35
#define HOOKTYPE_UMODE_CHANGE 36
/* Module flags */
#define MODFLAG_NONE 0x0000

View file

@ -2633,6 +2633,8 @@ CMD_FUNC(m_umode)
* compare new flags with old flags and send string which
* will cause servers to update correctly.
*/
if (setflags != sptr->umodes)
RunHook3(HOOKTYPE_UMODE_CHANGE, sptr, setflags, sptr->umodes);
if (dontspread == 0)
send_umode_out(cptr, sptr, setflags);