mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-08 04:03:12 +02:00
Add "CAP chghost" support. Internal recode of userhost changes.
Fix force-rejoin not working if doing SVSMODE -x/+x (Koragg, #5015). Note to module coders: Please use the following procedure in case of an user/host change: * userhost_save_current(acptr); * << change username or hostname here (or both) >> * userhost_changed(acptr); This function will take care of notifying other clients about the userhost change, such as doing PART+JOIN+MODE if force-rejoin is enabled, and sending :xx CHGHOST user host messages to "CAP chghost" capable clients. Also, small note to everyone: If force-rejoin is enabled we will not send the PART+JOIN+MODE to "CAP chghost" capable clients. Doing so is just a hack to notify people of a userhost change. "CAP chghost" users can thus benefit from the reduced noise in this respect.
This commit is contained in:
@@ -1044,6 +1044,8 @@ _UNREAL_ERROR(_hook_error_incompatible, "Incompatible hook function. Check argum
|
||||
#define EFUNC_SEND_MODDATA_MEMBERS 51
|
||||
#define EFUNC_BROADCAST_MODDATA_CLIENT 52
|
||||
#define EFUNC_MATCH_USER 53
|
||||
#define EFUNC_USERHOST_SAVE_CURRENT 54
|
||||
#define EFUNC_USERHOST_CHANGED 55
|
||||
|
||||
/* Module flags */
|
||||
#define MODFLAG_NONE 0x0000
|
||||
|
||||
Reference in New Issue
Block a user