[cvslog] (2003-04-19 06:31:36 UTC) Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Sat Apr 19 00:31:36 CST 2003


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2003-04-19 06:31:36 UTC
Commited by: stdarg <stdarg at techmonkeys.org>

Modified files:
     lib/eggdrop/users.c modules/server/server.c
     modules/server/servsock.c

Log message:



---------------------- diff included ----------------------
Index: eggdrop1.7/lib/eggdrop/users.c
diff -u eggdrop1.7/lib/eggdrop/users.c:1.11 eggdrop1.7/lib/eggdrop/users.c:1.12
--- eggdrop1.7/lib/eggdrop/users.c:1.11	Wed Mar  5 06:20:59 2003
+++ eggdrop1.7/lib/eggdrop/users.c	Sat Apr 19 01:31:26 2003
@@ -102,6 +102,8 @@
 			setting = u->settings+j;
 			xml_node_get_str(&flag_str, setting_node, "flags", 0, 0);
 			if (flag_str) flag_from_str(&setting->flags, flag_str);
+			else memset(&setting->flags, 0, sizeof(setting->flags));
+
 			setting->nextended = 0;
 			setting->extended = NULL;
 			xml_node_get_str(&chan, setting_node, "chan", 0, 0);
Index: eggdrop1.7/modules/server/server.c
diff -u eggdrop1.7/modules/server/server.c:1.45 eggdrop1.7/modules/server/server.c:1.46
--- eggdrop1.7/modules/server/server.c:1.45	Tue Apr 15 03:18:03 2003
+++ eggdrop1.7/modules/server/server.c	Sat Apr 19 01:31:26 2003
@@ -103,7 +103,7 @@
 }
 
 static bind_list_t server_secondly_binds[] = {
-	{NULL, server_secondly},
+	{"", server_secondly},
 	{0}
 };
 
Index: eggdrop1.7/modules/server/servsock.c
diff -u eggdrop1.7/modules/server/servsock.c:1.13 eggdrop1.7/modules/server/servsock.c:1.14
--- eggdrop1.7/modules/server/servsock.c:1.13	Tue Apr 15 03:18:03 2003
+++ eggdrop1.7/modules/server/servsock.c	Sat Apr 19 01:31:26 2003
@@ -51,7 +51,11 @@
 	if (serv->port) current_server.port = serv->port;
 	else current_server.port = server_config.default_port;
 
+	putlog(LOG_SERV, "*", "Connecting to %s (%d)", current_server.server_host, current_server.port);
 	current_server.idx = egg_connect(current_server.server_host, current_server.port, server_config.connect_timeout);
+	if (current_server.idx < 0) {
+		putlog(LOG_SERV, "*", "Error connecting to server");
+	}
 	sockbuf_set_handler(current_server.idx, &server_handler, NULL);
 }
 
----------------------- End of diff -----------------------


More information about the Changes mailing list