*** VERSION 5.4.0 ***
[NeonServV5.git] / src / ChanNode.c
index 977b9b4c985eb8d9270e0f788607882a9db81d3a..fddde4c10598cbd2d01e0762e0e4467af20619c0 100644 (file)
@@ -1,4 +1,4 @@
-/* ChanNode.c - NeonServ v5.3
+/* ChanNode.c - NeonServ v5.4
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
 #include "BanNode.h"
 #include "modcmd.h"
 #include "ModeNode.h"
-#include "bot_NeonSpam.h"
 #include "IRCEvents.h"
 
 static struct ChanNode **chanList;
-#ifdef HAVE_THREADS
-pthread_mutex_t cache_sync;
-#endif
 
 void init_ChanNode() {
-    THREAD_MUTEX_INIT(cache_sync);
     /*
      len pos chars 
      26  0   a-z
@@ -235,8 +230,6 @@ void freeChanNode(struct ChanNode* chan) {
     freeModeNode(chan->modes);
     if(chan->bans)
         removeChannelBans(chan);
-    if(chan->spam_settings)
-        freeNeonSpamSettings(chan->spam_settings);
     free(chan);
 }