Przeglądaj źródła

* Fixed dccauth not correctly working according to it's [bot]config setting (#30)

svn: 2011
Bryan Drewery 21 lat temu
rodzic
commit
6d72b199e8
2 zmienionych plików z 2 dodań i 1 usunięć
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/cfg.h

+ 1 - 0
doc/UPDATES

@@ -80,6 +80,7 @@ Lines prefixxed with '-' were disabled before release and are not finishsed, or
   -Changed (NEW) ip/host for bots are added to the botnet (if linked)
   -Changed (NEW) ip/host for bots are added to the botnet (if linked)
   -Removed bots are killed and removed from the userlist (if linked)
   -Removed bots are killed and removed from the userlist (if linked)
 * Added options 'enable' and 'disable' to cmd_conf for bots
 * Added options 'enable' and 'disable' to cmd_conf for bots
+* Fixed dccauth not correctly working according to it's [bot]config setting (#30)
 
 
 
 
 1.2.2
 1.2.2

+ 1 - 1
src/cfg.h

@@ -58,6 +58,6 @@ extern struct cfg_entry		**cfg;
 #define msginvite (CFG_MSGINVITE.ldata ? CFG_MSGINVITE.ldata : CFG_MSGINVITE.gdata ? CFG_MSGINVITE.gdata : "")
 #define msginvite (CFG_MSGINVITE.ldata ? CFG_MSGINVITE.ldata : CFG_MSGINVITE.gdata ? CFG_MSGINVITE.gdata : "")
 #define msgident (CFG_MSGIDENT.ldata ? CFG_MSGIDENT.ldata : CFG_MSGIDENT.gdata ? CFG_MSGIDENT.gdata : "")
 #define msgident (CFG_MSGIDENT.ldata ? CFG_MSGIDENT.ldata : CFG_MSGIDENT.gdata ? CFG_MSGIDENT.gdata : "")
 #define kill_threshold (CFG_KILLTHRESHOLD.gdata ? atoi(CFG_KILLTHRESHOLD.gdata) : 0)
 #define kill_threshold (CFG_KILLTHRESHOLD.gdata ? atoi(CFG_KILLTHRESHOLD.gdata) : 0)
-#define dccauth (CFG_DCCAUTH.ldata ? 1 : CFG_DCCAUTH.gdata ? 1 : 0)
+#define dccauth (CFG_DCCAUTH.ldata ? atoi(CFG_DCCAUTH.ldata) : CFG_DCCAUTH.gdata ? atoi(CFG_DCCAUTH.gdata) : 0)
 
 
 #endif /* !_CFG_H */
 #endif /* !_CFG_H */