Răsfoiți Sursa

Indent BOTSET entries in .whois

Bryan Drewery 10 ani în urmă
părinte
comite
2d1604a3aa
2 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 1 0
      doc/UPDATES.md
  2. 2 1
      src/userent.cc

+ 1 - 0
doc/UPDATES.md

@@ -17,6 +17,7 @@
   * Fix case where .[bot]set would not share to new bots until their localhub
     was relinked.
   * Raise netsplit timeout to 1000 seconds.
+  * Indent BOTNET entries some in .whois.
 
 # 1.4.6
   * Disable demo TCL support by default to prevent confusion during build.

+ 2 - 1
src/userent.cc

@@ -321,12 +321,13 @@ static void set_display(int idx, struct user_entry *e, struct userrec *u)
     struct xtra_key *xk = (struct xtra_key *) e->u.extra;
     struct flag_record fr = {FR_GLOBAL, 0, 0, 0 };
 
+    dprintf(idx, "  BOTSET:\n");
     get_user_flagrec(dcc[idx].user, &fr, NULL);
     /* scan thru xtra field, searching for matches */
     for (; xk; xk = xk->next) {
       /* ok, it's a valid xtra field entry */
       if (glob_owner(fr))
-        dprintf(idx, "  %s: %s\n", xk->key, xk->data ? xk->data : "");
+        dprintf(idx, "    %s: %s\n", xk->key, xk->data ? xk->data : "");
     }
   }
 }