diff --git a/src/tgchange.c b/src/tgchange.c index 72cad10b..0db3a194 100644 --- a/src/tgchange.c +++ b/src/tgchange.c @@ -28,6 +28,7 @@ #include "client.h" #include "s_stats.h" #include "hash.h" +#include "s_conf.h" #include "s_newconf.h" #include "s_serv.h" #include "send.h" @@ -75,6 +76,9 @@ add_channel_target(struct Client *source_p, struct Channel *chptr) { uint32_t hashv; + if(!ConfigChannel.channel_target_change) + return 1; + hashv = fnv_hash_upper((const unsigned char *)chptr->chname, 32); return add_hashed_target(source_p, hashv); }