mod-nopacklist
==============
This modification for Arisa-chan <http://arisa-chan.org/> removes the
packlist feature that makes Arisa special for a more iroffer-like
behaviour.
Make packlist name = network name to get it working.

Author: Nei <hsim at gmx dot li>
License: GNU General Public License Version 2 or any later one

diff -urp arisa-041123.00b/src/pack.c arisa-new/src/pack.c
--- arisa-041123.00b/src/pack.c	2004-11-20 11:48:12.000000000 +0100
+++ arisa-new/src/pack.c	2004-11-23 07:04:38.000000000 +0100
@@ -687,8 +687,8 @@ void packlist_xdl_head(packlist_t *l, pq
			
 	if(addtail) {
 		snprintf(buffer,sizeof(buffer),
-			"%s%s**%s To request a file type: \"/msg $BOT xdcc send %s #x\" %s**%s%s",
-			prefix,bold,unbold,l->name,bold,unbold,postfix
+			"%s%s**%s To request a file type: \"/msg $BOT xdcc send #x\" %s**%s%s",
+			prefix,bold,unbold,bold,unbold,postfix
 		);
 		pqueue_push_back(q,xstrdup(buffer));
 	}
diff -urp arisa-041123.00b/src/xdcc.c arisa-new/src/xdcc.c
--- arisa-041123.00b/src/xdcc.c	2004-08-22 21:05:05.000000000 +0200
+++ arisa-new/src/xdcc.c	2004-11-23 07:04:38.000000000 +0100
@@ -99,19 +99,12 @@ char **xdcc_info_msgs(char **names, int 
 	for(j = 0; j < no_names; j = i) {
 		pos = IMIN(
 			snprintf(buffer,sizeof(buffer),
-				"%s(%sXDCC%s)%s Trigger:%s(%s/msg $BOT xdcc list <list name>%s)%s Lists:%s(%s",
-				IRC_BOLD,IRC_BOLD,IRC_BOLD,IRC_BOLD,
+				"%s(%sXDCC%s)%s Trigger:%s(%s/msg $BOT xdcc list",
 				IRC_BOLD,IRC_BOLD,IRC_BOLD,IRC_BOLD,
 				IRC_BOLD,IRC_BOLD),
 			sizeof(buffer)-1
 		);
 		for(i = j; i < no_names && (pos < sizeof(buffer) - 100); ++i) {
-			pos += IMIN(
-				snprintf(buffer+pos,sizeof(buffer)-pos,
-					"%s%s",
-					(i != j ? ", " : ""),names[i]),
-				sizeof(buffer)-pos-1
-			);
 		}
 		if(i == no_names) {
 			if(info_size == 0 || 
@@ -630,9 +623,12 @@ void xdcc_cmd(network_t *net, const char
 		} else {
 			data = NULL;
 		}
+		data = list_name;
 	}
-	if(list_name != NULL)
-		list = packlist_find(list_name);
+	LOCK(net);
+	xstrncpy(obuffer,net->name,sizeof(obuffer));
+	UNLOCK(net);
+	list = packlist_find(obuffer);
 
 	if(irc_strcasecmp(lcmd,"list") == 0) {
 		if(list != NULL)

