Просмотр исходного кода

Added eggdrop 1.8 to compatibility list. Untested, though.

Florian Sander 9 лет назад
Родитель
Сommit
9b254d6334
3 измененных файлов с 13 добавлено и 9 удалено
  1. 2 2
      README
  2. 2 0
      UPDATES
  3. 9 7
      stats.c

+ 2 - 2
README

@@ -24,8 +24,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.4.1.tar.gz in ~/eggdrop1.6/src/mod/,
+and unpack it (tar xfz stats.mod.1.4.1.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.4.1
+- Now also works with eggdrop 1.8.
 
 
 1.4.0
 1.4.0
 - added TEMPLATES!
 - added TEMPLATES!

+ 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.4.0 dev20"
+#define MODULE_VERSION "1.4.1-dev"
 #ifndef NO_EGG
 #ifndef NO_EGG
 #include "../module.h"
 #include "../module.h"
 #include "../irc.mod/irc.h"
 #include "../irc.mod/irc.h"
@@ -474,12 +474,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.";
+          }
         }
         }
       }
       }
     }
     }