Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix perfomance issue raw filter for channel history

  • Loading branch information...
commit c4821fd58bbfa18fb0b030c74fb0d327a099ee10 1 parent 2b170e3
@flipkick flipkick authored committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/channel_history.c
View
4 src/channel_history.c
@@ -124,9 +124,9 @@ void push_raw_to_channel_history(CHANNEL *chan, RAW *raw, apeconfig *config) {
if (chan == NULL || chan->history == NULL) return;
if (chan->history->filter != NULL) {
- ITERATE_CONFIG_VAL(chan->history->filter, " ", {
- char *type = strstr(raw->data, "\"raw\":\"");
+ char *type = strstr(raw->data, "\"raw\":\"");
+ ITERATE_CONFIG_VAL(chan->history->filter, " ", {
if (type == NULL || strncmp(type+7, token, strlen(token)) != 0) {
free_raw(raw);
return;
Please sign in to comment.
Something went wrong with that request. Please try again.