[eggheads-patches] PATCH: userfilemessing.patch

Fabian Knittel fknittel at gmx.de
Wed Oct 13 10:49:39 CST 1999


[ userfilemessing.patch ]

Closes the TODO related to ` munging. Also removes the same
for ~. I'm only not 99% sure if this doesn't break anything else,
so if you know it does, please telle me.. :)

Fabian
-------------- next part --------------
diff -urN eggdrop1.3~/doc/UPDATES1.3 eggdrop1.3/doc/UPDATES1.3
--- eggdrop1.3~/doc/UPDATES1.3	Tue Oct 12 22:16:09 1999
+++ eggdrop1.3/doc/UPDATES1.3	Tue Oct 12 23:58:35 1999
@@ -4,6 +4,7 @@
 
 1.3.29
 Foundby   Fixedby   What....
+Tothwolf  Fabian    stopped userfile parsing funcs from messing with ~ and `
 	  CyberTech Fixed pver length into init_tcl().
 	  drummer   Adds ismodeline macros.
 ranjha	  Fabian    .help * is now converted to .help all
diff -urN eggdrop1.3~/src/users.c eggdrop1.3/src/users.c
--- eggdrop1.3~/src/users.c	Tue Oct 12 22:16:11 1999
+++ eggdrop1.3/src/users.c	Tue Oct 12 23:56:59 1999
@@ -225,19 +225,7 @@
 {
   maskrec *p = user_malloc(sizeof(maskrec));
   maskrec **u = (chan) ? m : global;
-  char *t;
 
-  /* decode gibberish stuff */
-  t = strchr(note, '~');
-  while (t != NULL) {
-    *t = ' ';
-    t = strchr(note, '~');
-  }
-  t = strchr(note, '`');
-  while (t != NULL) {
-    *t = ',';
-    t = strchr(note, '`');
-  }
   p->next = *u;
   *u = p;
   p->expire = expire_time;
@@ -286,8 +274,8 @@
 	    if (desc) {
 	      *desc = 0;
 	      desc++;
-	      addmask_fully(chan, &chan->bans, &global_bans, host, user, desc, atoi(expi), flags,
-			   atoi(add), atoi(last));
+	      addmask_fully(chan, &chan->bans, &global_bans, host, user,
+			    desc, atoi(expi), flags, atoi(add), atoi(last));
 	      return;
 	    }
 	  }
@@ -297,7 +285,8 @@
 	if (desc) {
 	  *desc = 0;
 	  desc++;
-	  addmask_fully(chan, &chan->bans, &global_bans, host, add, desc, atoi(expi), flags, now, 0);
+	  addmask_fully(chan, &chan->bans, &global_bans, host, add, desc,
+			atoi(expi), flags, now, 0);
 	  return;
 	}
       }
@@ -423,7 +412,7 @@
 
 static void restore_ignore(char *host)
 {
-  char *expi, *user, *added, *desc, *t;
+  char *expi, *user, *added, *desc;
   int flags = 0;
   struct igrec *p;
 
@@ -447,17 +436,6 @@
 	if (desc) {
 	  *desc = 0;
 	  desc++;
-	  /* decode gibberish stuff */
-	  t = strchr(desc, '~');
-	  while (t != NULL) {
-	    *t = ' ';
-	    t = strchr(desc, '~');
-	  }
-	  t = strchr(desc, '`');
-	  while (t != NULL) {
-	    *t = ',';
-	    t = strchr(desc, '`');
-	  }
 	} else
 	  desc = NULL;
       } else {
@@ -752,7 +730,7 @@
 	    }
 	    /* channel bans are never stacked with , */
 	    if (s[0]) {
-	      if (lasthand[0] && (strchr(CHANMETA, lasthand[0]) != NULL))	      
+	      if (lasthand[0] && (strchr(CHANMETA, lasthand[0]) != NULL)) 
 		restore_chanban(cst, s);
 	      else if (lasthand[0] == '*') {
 		if (lasthand[1] == 'i') {


More information about the Patches mailing list