[eggheads-patches] PATCH: chanmode3.patch

Dobos Lorant drummer at sophia.jpte.hu
Mon Oct 18 14:18:09 CST 1999


diff -ur eggdrop1.3.1011/src/mod/channels.mod/channels.h eggdrop1.3/src/mod/channels.mod/channels.h
--- eggdrop1.3.1011/src/mod/channels.mod/channels.h	Sun Oct 10 18:44:26 1999
+++ eggdrop1.3/src/mod/channels.mod/channels.h	Sun Oct 17 17:57:41 1999
@@ -53,6 +53,7 @@
 static int tcl_channel_modify(Tcl_Interp * irp, struct chanset_t *chan,
 			      int items, char **item);
 static int tcl_channel_add(Tcl_Interp * irp, char *, char *);
+static char *convert_element(char *src, char *dst);
 #else
 
 /* 4 - 7 */
diff -ur eggdrop1.3.1011/src/mod/channels.mod/tclchan.c eggdrop1.3/src/mod/channels.mod/tclchan.c
--- eggdrop1.3.1011/src/mod/channels.mod/tclchan.c	Mon Sep 27 01:14:24 1999
+++ eggdrop1.3/src/mod/channels.mod/tclchan.c	Sun Oct 17 18:08:24 1999
@@ -1437,11 +1437,13 @@
   int ret = TCL_OK;
   int join = 0;
   char buf[2048];
+  char buf2[256];
 
   if ((newname[0] != '#') && (newname[0] != '&'))
     return TCL_ERROR;
   context;
-  simple_sprintf(buf, "chanmode \"%s\" ", glob_chanmode);
+  convert_element(glob_chanmode, buf2);
+  simple_sprintf(buf, "chanmode %s ", buf2);
   strncat(buf, glob_chanset, 2047 - strlen(buf));
   strncat(buf, options, 2047 - strlen(buf));
   buf[2047] = 0;





More information about the Patches mailing list