Procházet zdrojové kódy

Added eggdrop 1.8 to compatibility list. Untested, though.

Florian Sander před 9 roky
rodič
revize
59c6ade306
3 změnil soubory, kde provedl 15 přidání a 10 odebrání
  1. 4 3
      README
  2. 2 0
      UPDATES
  3. 9 7
      stats.c

+ 4 - 3
README

@@ -15,7 +15,8 @@ and via http.
 Installation:
 Installation:
 -------------
 -------------
 
 
-Stats.mod will work with eggdrop1.6.x and eggdrop1.4.x.
+Stats.mod will work with eggdrop1.6.x and eggdrop1.4.x. It might work with 
+eggdrop 1.8.x, but has not been tested. Feedback is welcome!
 
 
 The following instructions assume, ~/eggdrop1.6/ is the directory
 The following instructions assume, ~/eggdrop1.6/ is the directory
 where you installed your eggdrop from. (of course, other source dirs
 where you installed your eggdrop from. (of course, other source dirs
@@ -24,8 +25,8 @@ Unfortunately, you need to compile stats.mod within your eggdrop source,
 so if you removed your original compile directory, you'll have to
 so if you removed your original compile directory, you'll have to
 compile the whole bot again... sorry.
 compile the whole bot again... sorry.
 
 
-Put stats.mod.1.3.2.tar.gz in ~/eggdrop1.6/src/mod/,
-and unpack it (tar xfz stats.mod.1.3.2.tar.gz). Change directory
+Put stats.mod.1.3.4.tar.gz in ~/eggdrop1.6/src/mod/,
+and unpack it (tar xfz stats.mod.1.3.4.tar.gz). Change directory
 back to ~/eggdrop1.6/. Type 'make config' (on eggdrop 1.4, you can skip
 back to ~/eggdrop1.6/. Type 'make config' (on eggdrop 1.4, you can skip
 that part) Type 'make', wait until compiling
 that part) Type 'make', wait until compiling
 is done and use 'make install' to install the bot and stats.mod.
 is done and use 'make install' to install the bot and stats.mod.

+ 2 - 0
UPDATES

@@ -1,5 +1,7 @@
 Changes in Stats.mod: (since v1.0.1)
 Changes in Stats.mod: (since v1.0.1)
 --------------------
 --------------------
+1.3.4
+- Now also works with eggdrop 1.8.
 
 
 1.3.3
 1.3.3
 - fixed bug which could crash the bot in certain cases
 - fixed bug which could crash the bot in certain cases

+ 9 - 7
stats.c

@@ -31,7 +31,7 @@
 
 
 #define MAKING_STATS
 #define MAKING_STATS
 #define MODULE_NAME "stats"
 #define MODULE_NAME "stats"
-#define MODULE_VERSION "1.3.3dev3"
+#define MODULE_VERSION "1.3.4-dev"
 #include "../module.h"
 #include "../module.h"
 #include "../irc.mod/irc.h"
 #include "../irc.mod/irc.h"
 #include "../server.mod/server.h"
 #include "../server.mod/server.h"
@@ -717,12 +717,14 @@ char *stats_start(Function * global_funcs)
     return "You need the server module to use the stats module.";
     return "You need the server module to use the stats module.";
   if (!(channels_funcs = module_depend(MODULE_NAME, "channels", 1, 0)))
   if (!(channels_funcs = module_depend(MODULE_NAME, "channels", 1, 0)))
     return "You need the channels module to use the stats module.";
     return "You need the channels module to use the stats module.";
-  if (!module_depend(MODULE_NAME, "eggdrop", 107, 0)) {
-    if (!module_depend(MODULE_NAME, "eggdrop", 106, 0)) {
-      if (!module_depend(MODULE_NAME, "eggdrop", 105, 0)) {
-        if (!module_depend(MODULE_NAME, "eggdrop", 104, 0)) {
-          module_undepend(MODULE_NAME);
-          return "Sorry, stats.mod doesn't work with this eggdrop version.";
+  if (!module_depend(MODULE_NAME, "eggdrop", 108, 0)) {
+    if (!module_depend(MODULE_NAME, "eggdrop", 107, 0)) {
+      if (!module_depend(MODULE_NAME, "eggdrop", 106, 0)) {
+        if (!module_depend(MODULE_NAME, "eggdrop", 105, 0)) {
+          if (!module_depend(MODULE_NAME, "eggdrop", 104, 0)) {
+            module_undepend(MODULE_NAME);
+            return "Sorry, stats.mod doesn't work with this eggdrop version.";
+          }
         }
         }
       }
       }
     }
     }