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

Fix crash due to recent commits. Don't call invisible_user_in_channel for servers.

This commit is contained in:
Bram Matthys
2025-10-07 18:33:27 +02:00
parent 99ae01edf8
commit 789ef5aa4c
+1 -1
View File
@@ -292,7 +292,7 @@ int moded_chanmode(Client *client, Channel *channel, MessageTag *recv_mtags, con
int moded_prechanmsg(Client *client, Channel *channel, MessageTag **mtags, const char *text, SendType sendtype)
{
if ((channel_is_delayed(channel) || channel_is_post_delayed(channel)) && (invisible_user_in_channel(client, channel)))
if (IsUser(client) && (channel_is_delayed(channel) || channel_is_post_delayed(channel)) && (invisible_user_in_channel(client, channel)))
clear_user_invisible_announce(channel, client, *mtags);
return 0;