[cvslog] (2004-10-04 16:05:42 UTC) Module eggdrop1.9: Change committed!

cvslog cvs at tsss.org
Mon Oct 4 10:05:42 CST 2004


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.9
Commit time: 2004-10-04 16:05:42 UTC
Commited by: stdarg <stdarg at techmonkeys.org>

Modified files:
     lib/eggdrop/help.h lib/eggdrop/partyline.h
     lib/eggdrop/partymember.c modules/oldbotnet/events.c
     modules/oldbotnet/oldbotnet.c

Log message:

* Fix some compile errors

---------------------- diff included ----------------------
Index: eggdrop1.9/lib/eggdrop/help.h
diff -u eggdrop1.9/lib/eggdrop/help.h:1.5 eggdrop1.9/lib/eggdrop/help.h:1.6
--- eggdrop1.9/lib/eggdrop/help.h:1.5	Wed Sep 29 13:03:53 2004
+++ eggdrop1.9/lib/eggdrop/help.h	Mon Oct  4 11:05:32 2004
@@ -16,7 +16,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  *
- * $Id: help.h,v 1.5 2004/09/29 18:03:53 stdarg Exp $
+ * $Id: help.h,v 1.6 2004/10/04 16:05:32 stdarg Exp $
  */
 
 #ifndef _EGG_HELP_H_
@@ -48,6 +48,8 @@
 
 int help_init();
 int help_shutdown();
+int help_set_default_path(const char *path);
+int help_set_default_lang(const char *lang);
 
 int help_count_sections();
 int help_count_entries();
@@ -60,7 +62,7 @@
 
 help_summary_t *help_lookup_summary(const char *name);
 help_section_t *help_lookup_section(const char *name);
-int help_print_entry(partymember_t *p, const char *name);
+xml_node_t *help_lookup_entry(help_summary_t *entry);
 
 help_search_t *help_search_new(const char *searchstr);
 int help_search_end(help_search_t *search);
Index: eggdrop1.9/lib/eggdrop/partyline.h
diff -u eggdrop1.9/lib/eggdrop/partyline.h:1.21 eggdrop1.9/lib/eggdrop/partyline.h:1.22
--- eggdrop1.9/lib/eggdrop/partyline.h:1.21	Wed Jun 23 15:19:45 2004
+++ eggdrop1.9/lib/eggdrop/partyline.h	Mon Oct  4 11:05:32 2004
@@ -16,7 +16,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  *
- * $Id: partyline.h,v 1.21 2004/06/23 20:19:45 wingman Exp $
+ * $Id: partyline.h,v 1.22 2004/10/04 16:05:32 stdarg Exp $
  */
 
 #ifndef _EGG_PARTYLINE_H_
@@ -28,6 +28,7 @@
 
 /* Bind table names for partyline events */
 #define BTN_PARTYLINE_JOIN	"partyjoin"
+#define BTN_PARTYLINE_NICK	"partynick"
 #define BTN_PARTYLINE_PART	"partypart"
 #define BTN_PARTYLINE_PUBLIC	"partypub"
 #define BTN_PARTYLINE_CMD	"party"
Index: eggdrop1.9/lib/eggdrop/partymember.c
diff -u eggdrop1.9/lib/eggdrop/partymember.c:1.17 eggdrop1.9/lib/eggdrop/partymember.c:1.18
--- eggdrop1.9/lib/eggdrop/partymember.c:1.17	Mon Oct  4 10:48:29 2004
+++ eggdrop1.9/lib/eggdrop/partymember.c	Mon Oct  4 11:05:32 2004
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: partymember.c,v 1.17 2004/10/04 15:48:29 stdarg Exp $";
+static const char rcsid[] = "$Id: partymember.c,v 1.18 2004/10/04 16:05:32 stdarg Exp $";
 #endif
 
 #include <stdarg.h>
@@ -41,16 +41,20 @@
 	{0}
 };
 
+static bind_table_t *BT_nick = NULL;
+
 int partymember_init(void)
 {
 	pid_ht = hash_table_create(NULL, NULL, 13, HASH_TABLE_INTS);
 	bind_add_list(BTN_USER_DELETE, partymember_udelete_binds);
+	BT_nick = bind_table_add(BTN_PARTYLINE_NICK, 3, "Pss", MATCH_NONE, BIND_STACKABLE);
 	return(0);
 }
 
 int partymember_shutdown(void)
 {
 	bind_rem_list(BTN_USER_DELETE, partymember_udelete_binds);
+	bind_table_del(BT_nick);
 
 	/* force a garbage run since we might have some partymembers 
  	 * marked as deleted and w/o a garbage_run we may not destroy
@@ -200,6 +204,7 @@
 		}
 		partychan_free_common(common);
 	}
+	bind_check(BT_nick, &p->user->settings[0].flags, NULL, p, oldnick, p->nick);
 	if (oldnick) free(oldnick);
 	p->flags &= ~PARTY_SELECTED;
 	return(0);
Index: eggdrop1.9/modules/oldbotnet/events.c
diff -u eggdrop1.9/modules/oldbotnet/events.c:1.5 eggdrop1.9/modules/oldbotnet/events.c:1.6
--- eggdrop1.9/modules/oldbotnet/events.c:1.5	Wed Jun 23 06:19:52 2004
+++ eggdrop1.9/modules/oldbotnet/events.c	Mon Oct  4 11:05:32 2004
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: events.c,v 1.5 2004/06/23 11:19:52 wingman Exp $";
+static const char rcsid[] = "$Id: events.c,v 1.6 2004/10/04 16:05:32 stdarg Exp $";
 #endif
 
 #include <ctype.h>
@@ -34,9 +34,9 @@
 
 int oldbotnet_events_init()
 {
-	bind_add_simple("partypub", NULL, NULL, on_pub);
-	bind_add_simple("partyjoin", NULL, NULL, on_join);
-	bind_add_simple("partypart", NULL, NULL, on_part);
+	bind_add_simple(BTN_PARTYLINE_PUBLIC, NULL, NULL, on_pub);
+	bind_add_simple(BTN_PARTYLINE_JOIN, NULL, NULL, on_join);
+	bind_add_simple(BTN_PARTYLINE_PART, NULL, NULL, on_part);
 	return(0);
 }
 
@@ -76,6 +76,7 @@
 	return(1);
 }
 
+#if 0
 static int on_privmsg(void *client_data, partymember_t *dest, partymember_t *src, const char *text, int len)
 {
 	return(0);
@@ -90,6 +91,7 @@
 {
 	return(0);
 }
+#endif
 
 static int on_pub(const char *name, int cid, partymember_t *src, const char *text, int len)
 {
Index: eggdrop1.9/modules/oldbotnet/oldbotnet.c
diff -u eggdrop1.9/modules/oldbotnet/oldbotnet.c:1.9 eggdrop1.9/modules/oldbotnet/oldbotnet.c:1.10
--- eggdrop1.9/modules/oldbotnet/oldbotnet.c:1.9	Wed Jun 23 06:19:52 2004
+++ eggdrop1.9/modules/oldbotnet/oldbotnet.c	Mon Oct  4 11:05:32 2004
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: oldbotnet.c,v 1.9 2004/06/23 11:19:52 wingman Exp $";
+static const char rcsid[] = "$Id: oldbotnet.c,v 1.10 2004/10/04 16:05:32 stdarg Exp $";
 #endif
 
 #include <ctype.h>
@@ -359,7 +359,7 @@
 	char *word[2];
 	partychan_t *chan;
 	partymember_t *p;
-	int n, pid;
+	int n;
 
 	n = egg_get_word_array(next, &next, word, 2);
 	if (n != 2 || !next) {
----------------------- End of diff -----------------------



More information about the Changes mailing list