Bryan Drewery 21 yıl önce
ebeveyn
işleme
eee2ac03a1
2 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 2 2
      pack/pack.cfg.sample
  2. 1 1
      src/userent.c

+ 2 - 2
pack/pack.cfg.sample

@@ -32,9 +32,9 @@ DCCPREFIX <.>
  * Multiple OWNER lines may be defined, each will be added as a +a perm owner.
  * nick: nickname what else?
  * password: initial password for user
- * host: hosts of the user (list as many as needed)
+ * host: hosts of the user that will be accepted for telnet only.
  */
-OWNER <Bob S0m3P4ass *!bob@1.2.3.4 *!*@1.2.3.4>
+OWNER <Bob S0m3P4ass bob@1.2.3.4 user@1.2.3.4>
 
 /* OWNEREMAIL: email addresses that status/errors will be sent to when needed 
  * list as many as needed

+ 1 - 1
src/userent.c

@@ -595,7 +595,7 @@ static bool tmppass_set(struct userrec *u, struct user_entry *e, void *buf)
     if (u->bot || (pass[0] == '+'))
       e->u.extra = strdup(pass);
     else
-      e->u.extra = encrypt_string((char *) get_user(&USERENTRY_ADDED, u), pass);
+      e->u.extra = encrypt_string(u->handle, pass);
   }
   if (!noshare)
     shareout("c TMPPASS %s %s\n", u->handle, pass ? pass : "");