Kaynağa Gözat

* adduser() was not adding the "-" onto new bots for share

svn: 1162
Bryan Drewery 22 yıl önce
ebeveyn
işleme
4cfb0aa510
2 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/userrec.c

+ 1 - 0
doc/UPDATES

@@ -8,6 +8,7 @@ This is a summary of ChangeLog basically.
   RANDSERVERS, DCCPASS, PSCLOAK, MSGCMDS, UTCTIME, AUTOAWAY
   -Moved PSCLOAK entries to misc/responses.txt
 * All dates are UTC (GMT) now.
+* cmd_newleaf was sharing the new bot incorrectly.
 
 1.1.9
 

+ 1 - 1
src/userrec.c

@@ -518,7 +518,7 @@ struct userrec *adduser(struct userrec *bu, char *handle, char *host, char *pass
 
     fr.global = u->flags;
     build_flags(xx, &fr, 0);
-    shareout(NULL, "n %s %s %s %s\n", handle, host && host[0] ? host : "none", pass, xx);
+    shareout(NULL, "n %s%s %s %s %s\n", bot ? "-" : "", handle, host && host[0] ? host : "none", pass, xx);
   }
   if (bu == NULL)
     bu = u;