Bläddra i källkod

* Fixed fatal bug in console_gotshare()
* Incremented vrsion to 1.0.13


svn: 467

Bryan Drewery 22 år sedan
förälder
incheckning
9e11ed72eb
3 ändrade filer med 11 tillägg och 4 borttagningar
  1. 3 0
      doc/UPDATES
  2. 2 2
      src/main.c
  3. 6 2
      src/mod/console.mod/console.c

+ 3 - 0
doc/UPDATES

@@ -1,5 +1,8 @@
 This is a summary of ChangeLog basically.
 
+1.0.13
+1.Fixed a fatal bug in console_gotshare()
+
 1.0.12
 1.When a user first logs in, if they don't have a secpass set, one is set and displayed.
 2.+closed now enforces +i AND +p (+p notifies you of invites in hybrid)

+ 2 - 2
src/main.c

@@ -81,8 +81,8 @@ int 	role;
 int 	loading = 0;
 
 const time_t 	buildts = CVSBUILD;		/* build timestamp (UTC) */
-const char	egg_version[1024] = "1.0.12";
-const int	egg_numver = 1001200;
+const char	egg_version[1024] = "1.0.13";
+const int	egg_numver = 1001300;
 time_t 	lastfork=0;
 
 #ifdef HUB

+ 6 - 2
src/mod/console.mod/console.c

@@ -121,7 +121,8 @@ static int console_set(struct userrec *u, struct user_entry *e, void *buf)
     egg_snprintf(string, sizeof string, "%s %s %s %d %d %d %d", ci->channel, masktype(ci->conflags), 
                                     stripmasktype(ci->stripflags), ci->echoflags, ci->page, ci->conchan,
                                     ci->color);
-    shareout(NULL, "c %s %s %s\n", e->type->name, u->handle, string);
+    /* shareout(NULL, "c %s %s %s\n", e->type->name, u->handle, string); */
+    shareout(NULL, "c CONSOLE %s %s\n", u->handle, string);
   }
   return 1;
 }
@@ -133,8 +134,11 @@ static int console_gotshare(struct userrec *u, struct user_entry *e, char *par,
   int i;
 
   arg = newsplit(&par);
-  if (ci->channel)
+  if (ci) {
     nfree(ci->channel);
+    nfree(ci);
+  }
+  ci = user_malloc(sizeof(struct console_info));
   ci->channel = user_malloc(strlen(arg) + 1);
   strcpy(ci->channel, arg);
   arg = newsplit(&par);