Jelajahi Sumber

* Updated UPDATES
* Fixed a small problem with color.h
* Removed some DEBUG_MEM references


svn: 619

Bryan Drewery 22 tahun lalu
induk
melakukan
d21c1832fa
3 mengubah file dengan 5 tambahan dan 4 penghapusan
  1. 1 0
      doc/UPDATES
  2. 4 0
      src/color.h
  3. 0 4
      src/modules.c

+ 1 - 0
doc/UPDATES

@@ -23,6 +23,7 @@ This is a summary of ChangeLog basically.
 20.cmd_match/cmd_userlist allowed getting around cmd_whois security checks.
 20.cmd_match/cmd_userlist allowed getting around cmd_whois security checks.
 21.Config option "nocheck" has been removed and is now implied by "ignore".
 21.Config option "nocheck" has been removed and is now implied by "ignore".
 22.Bots now do NOT check for tracing/promisc/login/etc... unless something is SET.
 22.Bots now do NOT check for tracing/promisc/login/etc... unless something is SET.
+23.Removed note ignore commands, ie .+/-noteign .noteigns
 
 
 1.0.14
 1.0.14
 1.Fixed order of log/info for cmd_whoami.
 1.Fixed order of log/info for cmd_whoami.

+ 4 - 0
src/color.h

@@ -1,3 +1,6 @@
+#ifndef _COLOR_H
+#define _COLOR_H
+
 #define C_BLACK                 1
 #define C_BLACK                 1
 #define C_BLUE                  2
 #define C_BLUE                  2
 #define C_GREEN                 3
 #define C_GREEN                 3
@@ -46,3 +49,4 @@
 #define FLASH(idx) 		color(idx, FLASH_OPEN, 0)
 #define FLASH(idx) 		color(idx, FLASH_OPEN, 0)
 #define FLASH_END(idx) 		color(idx, FLASH_CLOSE, 0)
 #define FLASH_END(idx) 		color(idx, FLASH_CLOSE, 0)
 
 
+#endif /* !_COLOR_H */

+ 0 - 4
src/modules.c

@@ -70,16 +70,12 @@ void check_static(char *name, char *(*func) ())
 
 
 void *mod_killsock(int size, const char *modname, const char *filename, int line)
 void *mod_killsock(int size, const char *modname, const char *filename, int line)
 {
 {
-#ifdef DEBUG_MEM
   char x[100], *p;
   char x[100], *p;
 
 
   p = strrchr(filename, '/');
   p = strrchr(filename, '/');
   egg_snprintf(x, sizeof x, "%s:%s", modname, p ? p + 1 : filename);
   egg_snprintf(x, sizeof x, "%s:%s", modname, p ? p + 1 : filename);
   x[19] = 0;
   x[19] = 0;
   real_killsock(size, x, line);
   real_killsock(size, x, line);
-#else
-  killsock(size);
-#endif
   return NULL;
   return NULL;
 }
 }