mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 11:13:13 +02:00
Multiple changes...
- Changed some useless stuff. - Enabled EXTCMODE by default, I presume it's stable but can't promise anything. - 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.
This commit is contained in:
+2
-2
@@ -759,10 +759,10 @@ extern Cmode *Channelmode_Table;
|
||||
extern unsigned short Channelmode_highest;
|
||||
#endif
|
||||
|
||||
extern Umode *UmodeAdd(Module *module, char ch, int options, int (*allowed)(aClient *sptr), long *mode);
|
||||
extern Umode *UmodeAdd(Module *module, char ch, int options, int (*allowed)(aClient *sptr, int what), long *mode);
|
||||
extern void UmodeDel(Umode *umode);
|
||||
|
||||
extern Snomask *SnomaskAdd(Module *module, char ch, int (*allowed)(aClient *sptr), long *mode);
|
||||
extern Snomask *SnomaskAdd(Module *module, char ch, int (*allowed)(aClient *sptr, int what), long *mode);
|
||||
extern void SnomaskDel(Snomask *sno);
|
||||
|
||||
#ifdef EXTCMODE
|
||||
|
||||
Reference in New Issue
Block a user