Fix IRCv3 typing notifications

This commit is contained in:
2026-09-26 06:10:20 -06:00
parent 2cf1f7e833
commit 222b4868f5
3 changed files with 36 additions and 20 deletions
+8 -6
View File
@@ -2826,6 +2826,7 @@ static gboolean
client_tag_allowed (server *serv, const char *tag)
{
char **deny;
gboolean blocked = FALSE;
int i;
if (!serv->have_message_tags)
@@ -2837,15 +2838,16 @@ client_tag_allowed (server *serv, const char *tag)
deny = g_strsplit (serv->clienttagdeny, ",", 0);
for (i = 0; deny[i]; i++)
{
if (!strcmp (deny[i], "*") || !strcmp (deny[i], tag) || (deny[i][0] == '+' && !strcmp (deny[i] + 1, tag)))
{
g_strfreev (deny);
return FALSE;
}
if (!strcmp (deny[i], "*"))
blocked = TRUE;
else if (deny[i][0] == '-' && !strcmp (deny[i] + 1, tag))
blocked = FALSE;
else if (!strcmp (deny[i], tag) || (deny[i][0] == '+' && !strcmp (deny[i] + 1, tag)))
blocked = TRUE;
}
g_strfreev (deny);
return TRUE;
return !blocked;
}
static char *
+1
View File
@@ -450,6 +450,7 @@ typedef struct session
int mode_timeout_tag;
int typing_timeout_tag;
int typing_status;
gint64 typing_last_sent;
int typing_animation_tag;
int typing_animation_frame;