filter: include identified marker

This commit is contained in:
Ed Kellett 2018-08-09 23:39:19 +01:00
parent d09c55338f
commit 3fbb1d7aeb
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View file

@ -306,8 +306,9 @@ filter_msg_user(void *data_)
char *text = rb_strdup(data->text);
strip_colour(text);
strip_unprintable(text);
snprintf(check_buffer, sizeof check_buffer, ":%s!%s@%s %s %s :%s",
snprintf(check_buffer, sizeof check_buffer, ":%s!%s@%s#%c %s %s :%s",
s->name, s->username, s->host,
s->user && s->user->suser[0] != '\0' ? '1' : '0',
cmdname[data->msgtype],
data->target_p->name,
text);
@ -343,8 +344,9 @@ filter_msg_channel(void *data_)
char *text = rb_strdup(data->text);
strip_colour(text);
strip_unprintable(text);
snprintf(check_buffer, sizeof check_buffer, ":%s!%s@%s %s %s :%s",
snprintf(check_buffer, sizeof check_buffer, ":%s!%s@%s#%c %s %s :%s",
s->name, s->username, s->host,
s->user && s->user->suser[0] != '\0' ? '1' : '0',
cmdname[data->msgtype],
data->chptr->chname,
text);