1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 05:23:12 +02:00

Insert an extra parameter in UmodeAdd and SnomaskAdd to indicate "unset this on de-oper". Safer and better than in XYZ places in the code.

This commit is contained in:
Bram Matthys
2015-06-21 20:37:53 +02:00
parent 329700f745
commit dd3c4ac4f4
13 changed files with 58 additions and 86 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ DLLFUNC int MOD_INIT(censor)(ModuleInfo *modinfo)
MARK_AS_OFFICIAL_MODULE(modinfo);
UmodeAdd(modinfo->handle, 'G', UMODE_GLOBAL, NULL, &UMODE_CENSOR);
UmodeAdd(modinfo->handle, 'G', UMODE_GLOBAL, 0, NULL, &UMODE_CENSOR);
HookAddPCharEx(modinfo->handle, HOOKTYPE_PRE_USERMSG, censor_pre_usermsg);