This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Why isn't this working...

Old posts that have not been replied to for several years.
Locked
j
jedis

Post by jedis »

bind dcc n changepass chg_pass
proc chg_pass {handle idx arg} {
global pach user
set pach $arg
if {$pach == ""} {
putdcc $idx "[Faze.h] Please see .time changepass"
return 1}
putcmdlog "#$handle# changepass..."
foreach user [userlist p] {
set pw [passwdok "$user" ""]
if {$pw == "1"} {
putlog $idx "[Faze.n] Password successfully set for users lacking one."
setuser $user PASS $pach
return 0}
}
}


DCC output:
#jedis# changepass...
TCL error [chg_pass]: wrong # args: should be "putlog text"

It is not changing the password for users without one. Can anyone get this working? Does anyone know of a good userlist maintenance tcl that works for 1.6.*?

Thanks

(forum removes the spacing, grr)

<font size=-1>[ This Message was edited by: jedis on 2001-10-14 16:31 ]</font>
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Find this line:

putlog $idx "[Faze.n] Password successfully set for users lacking one."

Change it to:
putdcc $idx "[Faze.n] Password successfully set for users lacking one."
j
jedis

Post by jedis »

Thanks stdragon :smile:
Locked