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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user