[cvslog] (2005-11-28 04:02:17 UTC) Module eggdrop1.9: Change committed!

cvslog cvs at tsss.org
Sun Nov 27 22:02:17 CST 2005


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.9
Commit time: 2005-11-28 04:02:17 UTC
Commited by: stdarg <stdarg at techmonkeys.org>

Modified files:
     modules/server/party_commands.c

Log message:

...+chan joins channel when executed

---------------------- diff included ----------------------
Index: eggdrop1.9/modules/server/party_commands.c
diff -u eggdrop1.9/modules/server/party_commands.c:1.20 eggdrop1.9/modules/server/party_commands.c:1.21
--- eggdrop1.9/modules/server/party_commands.c:1.20	Tue Oct  5 23:53:26 2004
+++ eggdrop1.9/modules/server/party_commands.c	Sun Nov 27 22:02:07 2005
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: party_commands.c,v 1.20 2004/10/06 04:53:26 stdarg Exp $";
+static const char rcsid[] = "$Id: party_commands.c,v 1.21 2005/11/28 04:02:07 stdarg Exp $";
 #endif
 
 #include "server.h"
@@ -267,6 +267,7 @@
 	const char *settings;
 	char *name;
 	channel_t *chan;
+	char *key;
 
 	egg_get_arg(text, &settings, &name);
 	if (!name) {
@@ -276,6 +277,11 @@
 	chan = channel_add(name);
 	free(name);
 	parse_chanset(chan, settings);
+
+	channel_get(chan, &key, "key", 0, NULL);
+	if (key && strlen(key)) printserv(SERVER_NORMAL, "JOIN %s %s", chan->name, key);
+	else printserv(SERVER_NORMAL, "JOIN %s", chan->name);
+
 	return BIND_RET_LOG;
 }
 
----------------------- End of diff -----------------------



More information about the Changes mailing list