mirror of
https://github.com/pissnet/pissircd.git
synced 2025-08-13 05:31:36 +01:00
- 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:
parent
794ce094a4
commit
f33bfea7b2
3 changed files with 5 additions and 0 deletions
2
Changes
2
Changes
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue