mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 16:34:13 +01:00
conf: Make channel::channel_target_change option actually work.
Channel target change was forcibly enabled.
This commit is contained in:
parent
3bfac098f7
commit
dfbf41a0ab
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue