[cvslog] (2005-12-01 22:16:23 UTC) Module eggdrop1.9: Change committed!

cvslog cvs at tsss.org
Thu Dec 1 16:16:23 CST 2005


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.9
Commit time: 2005-12-01 22:16:22 UTC
Commited by: Will Buckner <wcc at techmonkeys.org>

Modified files:
     Makefile.am lib/adns/.cvsignore lib/compat/.cvsignore
     lib/eggdrop/.cvsignore lib/eggdrop/socket.c lib/egglib/.cvsignore
     modules/blowfish/.cvsignore modules/channels/.cvsignore
     modules/chanserv/.cvsignore modules/compress/.cvsignore
     modules/dccparty/.cvsignore modules/filesys/.cvsignore
     modules/ircparty/.cvsignore modules/javascript/.cvsignore
     modules/oldbotnet/.cvsignore modules/perlscript/.cvsignore
     modules/proxy/.cvsignore modules/script/.cvsignore
     modules/server/.cvsignore modules/server/party_commands.c
     modules/tclscript/.cvsignore modules/telnetparty/.cvsignore
     modules/transfer/.cvsignore modules/uptime/.cvsignore
     src/.cvsignore src/core_party.c

Log message:

* Don't use getsockopt() on invalid file descriptors (<0).
* Minor code formatting.
* Added "loT" files to .cvsignore.

---------------------- diff included ----------------------
Index: eggdrop1.9/Makefile.am
diff -u eggdrop1.9/Makefile.am:1.25 eggdrop1.9/Makefile.am:1.26
--- eggdrop1.9/Makefile.am:1.25	Sun Oct 17 03:38:11 2004
+++ eggdrop1.9/Makefile.am	Thu Dec  1 16:16:11 2005
@@ -1,4 +1,4 @@
-# $Id: Makefile.am,v 1.25 2004/10/17 08:38:11 stdarg Exp $
+# $Id: Makefile.am,v 1.26 2005/12/01 22:16:11 wcc Exp $
 
 AUX_DIST		= $(ac_aux_dir)/install-sh \
 			$(ac_aux_dir)/ltmain.sh \
@@ -31,7 +31,7 @@
 dist-hook:
 	(cd $(distdir) && mkdir -p $(ac_aux_dir))
 	for file in $(AUX_DIST) $(AUX_DIST_EXTRA); do \
-	  ln $$file $(distdir) 2>/dev/null || cp -p $$file $(distdir); \
+		ln $$file $(distdir) 2>/dev/null || cp -p $$file $(distdir); \
 	done
 
 install-data-hook:
Index: eggdrop1.9/lib/adns/.cvsignore
diff -u eggdrop1.9/lib/adns/.cvsignore:1.1 eggdrop1.9/lib/adns/.cvsignore:1.2
--- eggdrop1.9/lib/adns/.cvsignore:1.1	Sun Oct 28 07:30:32 2001
+++ eggdrop1.9/lib/adns/.cvsignore	Thu Dec  1 16:16:11 2005
@@ -6,3 +6,4 @@
 *.lo
 *.la
 *.obj
+*.loT
Index: eggdrop1.9/lib/compat/.cvsignore
diff -u eggdrop1.9/lib/compat/.cvsignore:1.1 eggdrop1.9/lib/compat/.cvsignore:1.2
--- eggdrop1.9/lib/compat/.cvsignore:1.1	Sun Oct 28 07:30:32 2001
+++ eggdrop1.9/lib/compat/.cvsignore	Thu Dec  1 16:16:11 2005
@@ -6,3 +6,4 @@
 *.lo
 *.la
 *.obj
+*.loT
Index: eggdrop1.9/lib/eggdrop/.cvsignore
diff -u eggdrop1.9/lib/eggdrop/.cvsignore:1.5 eggdrop1.9/lib/eggdrop/.cvsignore:1.6
--- eggdrop1.9/lib/eggdrop/.cvsignore:1.5	Thu Jan  3 20:56:21 2002
+++ eggdrop1.9/lib/eggdrop/.cvsignore	Thu Dec  1 16:16:11 2005
@@ -4,6 +4,7 @@
 *.o
 *.lo
 *.obj
+*.loT
 *.a
 *.la
 *.so
Index: eggdrop1.9/lib/eggdrop/socket.c
diff -u eggdrop1.9/lib/eggdrop/socket.c:1.9 eggdrop1.9/lib/eggdrop/socket.c:1.10
--- eggdrop1.9/lib/eggdrop/socket.c:1.9	Thu Dec  1 12:03:07 2005
+++ eggdrop1.9/lib/eggdrop/socket.c	Thu Dec  1 16:16:11 2005
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: socket.c,v 1.9 2005/12/01 18:03:07 stdarg Exp $";
+static const char rcsid[] = "$Id: socket.c,v 1.10 2005/12/01 22:16:11 wcc Exp $";
 #endif
 
 #include <eggdrop/eggdrop.h>
@@ -163,6 +163,8 @@
 {
 	int size, err;
 
+	if (sock < 0) return(0);
+
 	size = sizeof(int);
 	err = 0;
 	getsockopt(sock, SOL_SOCKET, SO_ERROR, &err, &size);
Index: eggdrop1.9/lib/egglib/.cvsignore
diff -u eggdrop1.9/lib/egglib/.cvsignore:1.1 eggdrop1.9/lib/egglib/.cvsignore:1.2
--- eggdrop1.9/lib/egglib/.cvsignore:1.1	Sun Oct 28 07:30:33 2001
+++ eggdrop1.9/lib/egglib/.cvsignore	Thu Dec  1 16:16:11 2005
@@ -6,3 +6,4 @@
 *.lo
 *.la
 *.obj
+*.loT
Index: eggdrop1.9/modules/blowfish/.cvsignore
diff -u eggdrop1.9/modules/blowfish/.cvsignore:1.1 eggdrop1.9/modules/blowfish/.cvsignore:1.2
--- eggdrop1.9/modules/blowfish/.cvsignore:1.1	Sat Oct 27 11:34:47 2001
+++ eggdrop1.9/modules/blowfish/.cvsignore	Thu Dec  1 16:16:11 2005
@@ -6,3 +6,4 @@
 *.lo
 *.la
 *.obj
+*.loT
Index: eggdrop1.9/modules/channels/.cvsignore
diff -u eggdrop1.9/modules/channels/.cvsignore:1.1 eggdrop1.9/modules/channels/.cvsignore:1.2
--- eggdrop1.9/modules/channels/.cvsignore:1.1	Sat Oct 27 11:34:48 2001
+++ eggdrop1.9/modules/channels/.cvsignore	Thu Dec  1 16:16:11 2005
@@ -6,3 +6,4 @@
 *.lo
 *.la
 *.obj
+*.loT
Index: eggdrop1.9/modules/chanserv/.cvsignore
diff -u eggdrop1.9/modules/chanserv/.cvsignore:1.1 eggdrop1.9/modules/chanserv/.cvsignore:1.2
--- eggdrop1.9/modules/chanserv/.cvsignore:1.1	Mon Nov 28 01:09:28 2005
+++ eggdrop1.9/modules/chanserv/.cvsignore	Thu Dec  1 16:16:11 2005
@@ -6,4 +6,4 @@
 *.lo
 *.la
 *.obj
-
+*.loT
Index: eggdrop1.9/modules/compress/.cvsignore
diff -u eggdrop1.9/modules/compress/.cvsignore:1.1 eggdrop1.9/modules/compress/.cvsignore:1.2
--- eggdrop1.9/modules/compress/.cvsignore:1.1	Sat Oct 27 11:34:48 2001
+++ eggdrop1.9/modules/compress/.cvsignore	Thu Dec  1 16:16:11 2005
@@ -6,4 +6,4 @@
 *.lo
 *.la
 *.obj
-
+*.loT
Index: eggdrop1.9/modules/dccparty/.cvsignore
diff -u eggdrop1.9/modules/dccparty/.cvsignore:1.1 eggdrop1.9/modules/dccparty/.cvsignore:1.2
--- eggdrop1.9/modules/dccparty/.cvsignore:1.1	Tue Dec 16 21:01:14 2003
+++ eggdrop1.9/modules/dccparty/.cvsignore	Thu Dec  1 16:16:11 2005
@@ -6,4 +6,5 @@
 *.lo
 *.la
 *.obj
+*.loT
 
Index: eggdrop1.9/modules/filesys/.cvsignore
diff -u eggdrop1.9/modules/filesys/.cvsignore:1.1 eggdrop1.9/modules/filesys/.cvsignore:1.2
--- eggdrop1.9/modules/filesys/.cvsignore:1.1	Sat Oct 27 11:34:50 2001
+++ eggdrop1.9/modules/filesys/.cvsignore	Thu Dec  1 16:16:11 2005
@@ -6,3 +6,4 @@
 *.lo
 *.la
 *.obj
+*.loT
Index: eggdrop1.9/modules/ircparty/.cvsignore
diff -u eggdrop1.9/modules/ircparty/.cvsignore:1.1 eggdrop1.9/modules/ircparty/.cvsignore:1.2
--- eggdrop1.9/modules/ircparty/.cvsignore:1.1	Tue Dec 16 21:01:14 2003
+++ eggdrop1.9/modules/ircparty/.cvsignore	Thu Dec  1 16:16:12 2005
@@ -6,4 +6,4 @@
 *.lo
 *.la
 *.obj
-
+*.loT
Index: eggdrop1.9/modules/javascript/.cvsignore
diff -u eggdrop1.9/modules/javascript/.cvsignore:1.1 eggdrop1.9/modules/javascript/.cvsignore:1.2
--- eggdrop1.9/modules/javascript/.cvsignore:1.1	Thu May  9 16:23:30 2002
+++ eggdrop1.9/modules/javascript/.cvsignore	Thu Dec  1 16:16:12 2005
@@ -6,3 +6,4 @@
 *.lo
 *.la
 *.obj
+*.loT
Index: eggdrop1.9/modules/oldbotnet/.cvsignore
diff -u eggdrop1.9/modules/oldbotnet/.cvsignore:1.1 eggdrop1.9/modules/oldbotnet/.cvsignore:1.2
--- eggdrop1.9/modules/oldbotnet/.cvsignore:1.1	Tue Dec 16 21:01:14 2003
+++ eggdrop1.9/modules/oldbotnet/.cvsignore	Thu Dec  1 16:16:12 2005
@@ -6,4 +6,4 @@
 *.lo
 *.la
 *.obj
-
+*.loT
Index: eggdrop1.9/modules/perlscript/.cvsignore
diff -u eggdrop1.9/modules/perlscript/.cvsignore:1.1 eggdrop1.9/modules/perlscript/.cvsignore:1.2
--- eggdrop1.9/modules/perlscript/.cvsignore:1.1	Sat Oct 27 11:34:52 2001
+++ eggdrop1.9/modules/perlscript/.cvsignore	Thu Dec  1 16:16:12 2005
@@ -6,4 +6,4 @@
 *.lo
 *.la
 *.obj
-
+*.loT
Index: eggdrop1.9/modules/proxy/.cvsignore
diff -u eggdrop1.9/modules/proxy/.cvsignore:1.1 eggdrop1.9/modules/proxy/.cvsignore:1.2
--- eggdrop1.9/modules/proxy/.cvsignore:1.1	Fri Dec 19 16:12:09 2003
+++ eggdrop1.9/modules/proxy/.cvsignore	Thu Dec  1 16:16:12 2005
@@ -6,3 +6,4 @@
 *.lo
 *.la
 *.obj
+*.loT
Index: eggdrop1.9/modules/script/.cvsignore
diff -u eggdrop1.9/modules/script/.cvsignore:1.1 eggdrop1.9/modules/script/.cvsignore:1.2
--- eggdrop1.9/modules/script/.cvsignore:1.1	Tue Dec 16 21:01:14 2003
+++ eggdrop1.9/modules/script/.cvsignore	Thu Dec  1 16:16:12 2005
@@ -6,4 +6,5 @@
 *.lo
 *.la
 *.obj
+*.loT
 
Index: eggdrop1.9/modules/server/.cvsignore
diff -u eggdrop1.9/modules/server/.cvsignore:1.1 eggdrop1.9/modules/server/.cvsignore:1.2
--- eggdrop1.9/modules/server/.cvsignore:1.1	Sat Oct 27 11:34:52 2001
+++ eggdrop1.9/modules/server/.cvsignore	Thu Dec  1 16:16:12 2005
@@ -6,3 +6,4 @@
 *.lo
 *.la
 *.obj
+*.loT
Index: eggdrop1.9/modules/server/party_commands.c
diff -u eggdrop1.9/modules/server/party_commands.c:1.24 eggdrop1.9/modules/server/party_commands.c:1.25
--- eggdrop1.9/modules/server/party_commands.c:1.24	Mon Nov 28 19:18:54 2005
+++ eggdrop1.9/modules/server/party_commands.c	Thu Dec  1 16:16:12 2005
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: party_commands.c,v 1.24 2005/11/29 01:18:54 wcc Exp $";
+static const char rcsid[] = "$Id: party_commands.c,v 1.25 2005/12/01 22:16:12 wcc Exp $";
 #endif
 
 #include "server.h"
@@ -470,7 +470,7 @@
 	{"m", "jump", party_jump},			/* DDD	*/
 	{"m", "channels", party_channels},		/* DDD	*/	/* m */
 	{"n", "+chan", party_pls_chan},			/* DDC	*/	/* n */
-	{"n", "-chan", party_minus_chan},			/* DDC	*/	/* n */
+	{"n", "-chan", party_minus_chan},		/* DDC	*/	/* n */
 	{"n", "chanset", party_chanset},		/* DDC	*/	/* n|n */
 	{"m", "chaninfo", party_chaninfo},		/* DDC	*/	/* m|m */
 	{"n", "chansave", party_chansave},		/* DDC	*/	/* n|n */
Index: eggdrop1.9/modules/tclscript/.cvsignore
diff -u eggdrop1.9/modules/tclscript/.cvsignore:1.1 eggdrop1.9/modules/tclscript/.cvsignore:1.2
--- eggdrop1.9/modules/tclscript/.cvsignore:1.1	Sat Oct 27 11:34:53 2001
+++ eggdrop1.9/modules/tclscript/.cvsignore	Thu Dec  1 16:16:12 2005
@@ -6,3 +6,4 @@
 *.lo
 *.la
 *.obj
+*.loT
Index: eggdrop1.9/modules/telnetparty/.cvsignore
diff -u eggdrop1.9/modules/telnetparty/.cvsignore:1.1 eggdrop1.9/modules/telnetparty/.cvsignore:1.2
--- eggdrop1.9/modules/telnetparty/.cvsignore:1.1	Tue Dec 16 21:01:14 2003
+++ eggdrop1.9/modules/telnetparty/.cvsignore	Thu Dec  1 16:16:12 2005
@@ -6,4 +6,5 @@
 *.lo
 *.la
 *.obj
+*.loT
 
Index: eggdrop1.9/modules/transfer/.cvsignore
diff -u eggdrop1.9/modules/transfer/.cvsignore:1.1 eggdrop1.9/modules/transfer/.cvsignore:1.2
--- eggdrop1.9/modules/transfer/.cvsignore:1.1	Sat Oct 27 11:34:53 2001
+++ eggdrop1.9/modules/transfer/.cvsignore	Thu Dec  1 16:16:12 2005
@@ -6,3 +6,4 @@
 *.lo
 *.la
 *.obj
+*.loT
Index: eggdrop1.9/modules/uptime/.cvsignore
diff -u eggdrop1.9/modules/uptime/.cvsignore:1.1 eggdrop1.9/modules/uptime/.cvsignore:1.2
--- eggdrop1.9/modules/uptime/.cvsignore:1.1	Sat Oct 27 11:34:54 2001
+++ eggdrop1.9/modules/uptime/.cvsignore	Thu Dec  1 16:16:12 2005
@@ -6,3 +6,4 @@
 *.lo
 *.la
 *.obj
+*.loT
Index: eggdrop1.9/src/.cvsignore
diff -u eggdrop1.9/src/.cvsignore:1.2 eggdrop1.9/src/.cvsignore:1.3
--- eggdrop1.9/src/.cvsignore:1.2	Tue Oct  9 20:20:10 2001
+++ eggdrop1.9/src/.cvsignore	Thu Dec  1 16:16:12 2005
@@ -4,4 +4,5 @@
 .libs
 *.o
 *.obj
+*.loT
 eggdrop
Index: eggdrop1.9/src/core_party.c
diff -u eggdrop1.9/src/core_party.c:1.45 eggdrop1.9/src/core_party.c:1.46
--- eggdrop1.9/src/core_party.c:1.45	Sun Oct 17 00:14:07 2004
+++ eggdrop1.9/src/core_party.c	Thu Dec  1 16:16:12 2005
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: core_party.c,v 1.45 2004/10/17 05:14:07 stdarg Exp $";
+static const char rcsid[] = "$Id: core_party.c,v 1.46 2005/12/01 22:16:12 wcc Exp $";
 #endif
 
 #include <eggdrop/eggdrop.h>
@@ -527,7 +527,7 @@
 {
 	putlog(LOG_MISC, "*", "%s: %s", nick, text);
 
-	return BIND_RET_LOG;
+	return(BIND_RET_LOG);
 }
 
 static int party_modules(partymember_t *p, const char *nick, user_t *u, const char *cmd, const char *text)
@@ -540,7 +540,7 @@
 	for (ctr = 0; ctr < nummods; ctr++) partymember_printf(p, "   %s", modules[ctr]);
 	free(modules);
 
-	return BIND_RET_LOG;
+	return(BIND_RET_LOG);
 }
 
 static int party_loadmod(partymember_t *p, const char *nick, user_t *u, const char *cmd, const char *text)
@@ -563,7 +563,7 @@
 			partymember_printf(p, _("Module '%s' does not have a valid initialization function. Perhaps it is not an eggdrop module?"), text);
 			break;
 	}
-	return BIND_RET_LOG;
+	return(BIND_RET_LOG);
 }
 
 static int party_unloadmod(partymember_t *p, const char *nick, user_t *u, const char *cmd, const char *text)
@@ -586,7 +586,7 @@
 			partymember_printf(p, _("Module '%s' refuses to be unloaded by you!"), text);
 			break;
 	}
-	return BIND_RET_LOG;
+	return(BIND_RET_LOG);
 }
 
 static int party_binds(partymember_t *p, const char *nick, user_t *u, const char *cmd, const char *text)
@@ -605,7 +605,7 @@
 		}
 	}
 
-	return BIND_RET_LOG;
+	return(BIND_RET_LOG);
 }
 
 static int party_timers(partymember_t *p, const char *nick, user_t *u, const char *cmd, const char *text)
@@ -663,7 +663,7 @@
 {
 	core_restart (nick);
 
-	return BIND_RET_LOG;
+	return(BIND_RET_LOG);
 }
 
 /* Syntax: chhandle <old_handle> <new_handle> */
@@ -702,7 +702,7 @@
 	free(newh);
 	free(old);
 
-	return BIND_RET_LOG;
+	return(BIND_RET_LOG);
 }
 
 /* Syntax: chpass <handle> [new_pass] */
@@ -738,7 +738,7 @@
 	free(user);
 	free(pass);
 
-	return BIND_RET_LOG_COMMAND;
+	return(BIND_RET_LOG)_COMMAND;
 }
 
 /* Makes sure 'start' and 'limit' arguments for .match are reasonable, or else sets them -1 */
@@ -860,7 +860,7 @@
 
 	free(attr);
 
-	return BIND_RET_LOG;
+	return(BIND_RET_LOG);
 }
 
 static bind_list_t core_party_binds[] = {		/* Old flags requirement */
----------------------- End of diff -----------------------



More information about the Changes mailing list