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

Delayjoin: if kicking invisible user we used to clear the invisibility

status of the victim (JOIN+KICK). That seems unnecessary to me, since
there is already code in place to handle this -- hopefully it works too.
This commit is contained in:
Bram Matthys
2019-06-07 14:41:01 +02:00
parent 61b4a6ea29
commit 1f2bb0d89b
-13
View File
@@ -28,7 +28,6 @@ int moded_check_part( aClient *cptr, aChannel *chptr);
int moded_join(aClient *cptr, aChannel *chptr);
int moded_part(aClient *cptr, aClient *sptr, aChannel *chptr, char *comment);
int deny_all(aClient *cptr, aChannel *chptr, char mode, char *para, int checkt, int what);
int moded_kick(aClient *cptr, aClient *sptr, aClient *acptr, aChannel *chptr, char *comment);
int moded_chanmode(aClient *cptr, aClient *sptr, aChannel *chptr,
char *modebuf, char *parabuf, time_t sendts, int samode);
char *moded_prechanmsg(aClient *sptr, aChannel *chptr, char *text, int notice);
@@ -74,8 +73,6 @@ MOD_INIT(delayjoin)
HookAdd(modinfo->handle, HOOKTYPE_JOIN_DATA, 0, moded_join);
HookAdd(modinfo->handle, HOOKTYPE_LOCAL_PART, 0, moded_part);
HookAdd(modinfo->handle, HOOKTYPE_REMOTE_PART, 0, moded_part);
HookAdd(modinfo->handle, HOOKTYPE_LOCAL_KICK, 0, moded_kick);
HookAdd(modinfo->handle, HOOKTYPE_REMOTE_KICK, 0, moded_kick);
HookAdd(modinfo->handle, HOOKTYPE_PRE_LOCAL_CHANMODE, 0, moded_chanmode);
HookAdd(modinfo->handle, HOOKTYPE_PRE_REMOTE_CHANMODE, 0, moded_chanmode);
HookAddPChar(modinfo->handle, HOOKTYPE_PRE_CHANMSG, 99999999, moded_prechanmsg);
@@ -279,16 +276,6 @@ int moded_part(aClient *cptr, aClient *sptr, aChannel *chptr, char *comment)
return 0;
}
int moded_kick(aClient *cptr, aClient *sptr, aClient *acptr, aChannel *chptr, char *comment)
{
if (channel_is_delayed(chptr) || channel_is_post_delayed(chptr))
if (moded_user_invisible(acptr, chptr))
clear_user_invisible_announce(chptr,acptr);
return 0;
}
int moded_chanmode(aClient *cptr, aClient *sptr, aChannel *chptr,
char *modebuf, char *parabuf, time_t sendts, int samode)
{