conf: Make channel::channel_target_change option actually work.

Channel target change was forcibly enabled.
This commit is contained in:
Jilles Tjoelker 2014-08-08 11:57:09 +02:00
parent 3bfac098f7
commit dfbf41a0ab

View file

@ -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);
}