]> jfr.im git - solanum.git/commitdiff
conf: Make channel::channel_target_change option actually work.
authorJilles Tjoelker <redacted>
Fri, 8 Aug 2014 09:57:09 +0000 (11:57 +0200)
committerJilles Tjoelker <redacted>
Fri, 8 Aug 2014 09:57:09 +0000 (11:57 +0200)
Channel target change was forcibly enabled.

src/tgchange.c

index 72cad10bfc4dd75ea01ec7973501309189ab604e..0db3a1948910c27dfc84bb173fb92faf6e330f6f 100644 (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);
 }