[cvslog] (2003-05-12 11:55:03 UTC) Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Mon May 12 05:55:03 CST 2003


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2003-05-12 11:55:03 UTC
Commited by: wingman

Modified files:
     lib/eggdrop/eggdns.c lib/eggdrop/eggmod.c lib/eggdrop/eggnet.c
     lib/eggdrop/eggowner.c lib/eggdrop/ircmasks.c lib/eggdrop/md5.c
     lib/eggdrop/xmlwrite.c modules/irc/msgcmds.c src/main.c

Log message:

 * removed some compile warnings here and there
 * removed some old notes code which was still in our core

---------------------- diff included ----------------------
Index: eggdrop1.7/lib/eggdrop/eggdns.c
diff -u eggdrop1.7/lib/eggdrop/eggdns.c:1.4 eggdrop1.7/lib/eggdrop/eggdns.c:1.5
--- eggdrop1.7/lib/eggdrop/eggdns.c:1.4	Tue Apr  8 21:01:13 2003
+++ eggdrop1.7/lib/eggdrop/eggdns.c	Mon May 12 06:54:53 2003
@@ -350,7 +350,11 @@
 		if (type == DNS_IPV4) ns_type = 1; /* IPv4 */
 		else if (type == DNS_IPV6) ns_type = 28; /* IPv6 */
 		else return(-1);
-		newhost = host;
+
+		// hmm, casting const to char * doesn't seem to
+  		// be a good idea ;-) shouldn't the funciton be changed
+		// (i.e. removing the const identifier?)
+		newhost = (char *)host;
 	}
 
 	*buf = (char *)malloc(strlen(newhost) + 512);
Index: eggdrop1.7/lib/eggdrop/eggmod.c
diff -u eggdrop1.7/lib/eggdrop/eggmod.c:1.1 eggdrop1.7/lib/eggdrop/eggmod.c:1.2
--- eggdrop1.7/lib/eggdrop/eggmod.c:1.1	Tue Apr 15 03:18:03 2003
+++ eggdrop1.7/lib/eggdrop/eggmod.c	Mon May 12 06:54:53 2003
@@ -90,7 +90,9 @@
 	module_list_t *entry, *prev;
 	int retval;
 
-	for (entry = module_list_head; entry; entry = entry->next) {
+	for (entry = module_list_head, prev = NULL;
+		 entry; 
+			prev = entry, entry = entry->next) {
 		if (!strcasecmp(entry->modinfo.name, name)) break;
 	}
 	if (!entry) return(-1);
@@ -101,6 +103,7 @@
 	}
 
 	lt_dlclose(entry->hand);
+
 	if (prev) prev->next = entry->next;
 	else module_list_head = entry->next;
 	free(entry);
Index: eggdrop1.7/lib/eggdrop/eggnet.c
diff -u eggdrop1.7/lib/eggdrop/eggnet.c:1.5 eggdrop1.7/lib/eggdrop/eggnet.c:1.6
--- eggdrop1.7/lib/eggdrop/eggnet.c:1.5	Thu Apr  3 22:04:46 2003
+++ eggdrop1.7/lib/eggdrop/eggnet.c	Mon May 12 06:54:53 2003
@@ -38,7 +38,7 @@
 
 int egg_net_init()
 {
-	egg_dns_init();
+	return egg_dns_init();
 }
 
 /* Print to an idx, using printf notation. */
Index: eggdrop1.7/lib/eggdrop/eggowner.c
diff -u eggdrop1.7/lib/eggdrop/eggowner.c:1.1 eggdrop1.7/lib/eggdrop/eggowner.c:1.2
--- eggdrop1.7/lib/eggdrop/eggowner.c:1.1	Tue Apr 15 03:18:03 2003
+++ eggdrop1.7/lib/eggdrop/eggowner.c	Mon May 12 06:54:53 2003
@@ -1,3 +1,4 @@
+#include <ctype.h>		/* isalnum	*/
 #include <eggdrop/eggdrop.h>
 
 static char **owner = NULL;
Index: eggdrop1.7/lib/eggdrop/ircmasks.c
diff -u eggdrop1.7/lib/eggdrop/ircmasks.c:1.2 eggdrop1.7/lib/eggdrop/ircmasks.c:1.3
--- eggdrop1.7/lib/eggdrop/ircmasks.c:1.2	Wed Oct  9 04:09:40 2002
+++ eggdrop1.7/lib/eggdrop/ircmasks.c	Mon May 12 06:54:53 2003
@@ -1,7 +1,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-
+#include "match.h"
+#include "egglog.h"
 #include "ircmasks.h"
 
 int ircmask_list_add(ircmask_list_t *list, const char *ircmask, void *data)
@@ -37,6 +38,11 @@
 
 int ircmask_list_del(ircmask_list_t *list, const char *ircmask, void *data)
 {
+	putlog(LOG_DEBUG, "*", "implement me %s:%i, ircmask_list_del()", 
+			__FILE__, 
+			__LINE__
+	);
+	return (-1);
 }
 
 int ircmask_list_find(ircmask_list_t *list, const char *irchost, void *dataptr)
Index: eggdrop1.7/lib/eggdrop/md5.c
diff -u eggdrop1.7/lib/eggdrop/md5.c:1.1 eggdrop1.7/lib/eggdrop/md5.c:1.2
--- eggdrop1.7/lib/eggdrop/md5.c:1.1	Sun Nov  3 17:16:09 2002
+++ eggdrop1.7/lib/eggdrop/md5.c	Mon May 12 06:54:53 2003
@@ -16,6 +16,7 @@
  */
 
 #include <string.h>
+#include <stdio.h>	/* sprintf	*/
 
 #include "md5.h"
 
Index: eggdrop1.7/lib/eggdrop/xmlwrite.c
diff -u eggdrop1.7/lib/eggdrop/xmlwrite.c:1.2 eggdrop1.7/lib/eggdrop/xmlwrite.c:1.3
--- eggdrop1.7/lib/eggdrop/xmlwrite.c:1.2	Sun Feb 16 05:15:06 2003
+++ eggdrop1.7/lib/eggdrop/xmlwrite.c	Mon May 12 06:54:53 2003
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>	/* memset	*/
 #include "xml.h"
 
 int xml_write_node(FILE *fp, xml_node_t *node, int indent)
Index: eggdrop1.7/modules/irc/msgcmds.c
diff -u eggdrop1.7/modules/irc/msgcmds.c:1.18 eggdrop1.7/modules/irc/msgcmds.c:1.19
--- eggdrop1.7/modules/irc/msgcmds.c:1.18	Thu Mar  6 06:08:15 2003
+++ eggdrop1.7/modules/irc/msgcmds.c	Mon May 12 06:54:53 2003
@@ -24,7 +24,7 @@
 
 /* FIXME: #include mess
 #ifndef lint
-static const char rcsid[] = "$Id: msgcmds.c,v 1.18 2003/03/06 12:08:15 tothwolf Exp $";
+static const char rcsid[] = "$Id: msgcmds.c,v 1.19 2003/05/12 11:54:53 wingman Exp $";
 #endif
 */
 
@@ -85,24 +85,9 @@
   if (strlen(nick) > HANDLEN)
     /* Notify the user that his/her handle was truncated. */
     dprintf(DP_HELP, _("NOTICE %s :Your nick was too long and therefore it was truncated to %s.\n"), nick, handle);
-  if (notify_new[0]) {
-    snprintf(s, sizeof s, _("introduced to %s from %s"), nick, host);
-    strcpy(s1, notify_new);
-    while (s1[0]) {
-      p1 = strchr(s1, ',');
-      if (p1 != NULL) {
-	*p1 = 0;
-	p1++;
-	rmspace(p1);
-      }
-      rmspace(s1);
-      add_note(s1, myname, s, -1, 0);
-      if (p1 == NULL)
-	s1[0] = 0;
-      else
-	strcpy(s1, p1);
-    }
-  }
+
+  /* @@TODO: readd notify-on-new user stuff */
+
   return 1;
 }
 
Index: eggdrop1.7/src/main.c
diff -u eggdrop1.7/src/main.c:1.148 eggdrop1.7/src/main.c:1.149
--- eggdrop1.7/src/main.c:1.148	Sat May 10 21:33:32 2003
+++ eggdrop1.7/src/main.c	Mon May 12 06:54:53 2003
@@ -30,7 +30,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: main.c,v 1.148 2003/05/11 02:33:32 stdarg Exp $";
+static const char rcsid[] = "$Id: main.c,v 1.149 2003/05/12 11:54:53 wingman Exp $";
 #endif
 
 #include <unistd.h>
@@ -83,7 +83,6 @@
 
 eggdrop_t *egg = NULL;		/* Eggdrop's context */
 
-char	notify_new[121] = "";	/* Person to send a note to for new users */
 int	default_flags = 0;	/* Default user flags and */
 int	default_uflags = 0;	/* Default userdefinied flags for people
 				   who say 'hello' or for .adduser */
@@ -103,8 +102,6 @@
 				   stored in */
 int	save_users_at = 0;	/* How many minutes past the hour to
 				   save the userfile? */
-int	notify_users_at = 0;	/* How many minutes past the hour to
-				   notify users of notes? */
 char	version[81];		/* Version info (long form) */
 char	ver[41];		/* Version info (short form) */
 int	use_stderr = 1;		/* Send stuff to stderr instead of logfiles? */
@@ -332,7 +329,6 @@
 	check_bind_event("daily");
       }
     }
-    if (nowtm.tm_min == notify_users_at) check_bind_event("hourly");
   }
   return(0);
 }
----------------------- End of diff -----------------------


More information about the Changes mailing list