]> jfr.im git - solanum.git/blobdiff - src/tgchange.c
implement configurable channel modes (closes #31)
[solanum.git] / src / tgchange.c
index 547eb5fb660528cdf24e68b5618db57c920d0d97..0db3a1948910c27dfc84bb173fb92faf6e330f6f 100644 (file)
 #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"
 
 static int add_hashed_target(struct Client *source_p, uint32_t hashv);
 
@@ -74,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);
 }