For each user, *IS* there anything to output for INFO ?simo wrote:tested but it seems to output empty content
Modifying that for your current experimental script, would be something like:$n - [chattr $n]"
Code: Select all
bind pub -|- !uinfo pub:userinfo
proc pub:userinfo {nick host hand chan text} {
foreach uhandle [userlist] {
#putserv "privmsg $chan :[getuser $uhandle INFO] "
putserv "privmsg $chan :$uhandle - [chattr $uhandle] "
# Experiment! you can try outputting a variety of things, here
}
}
CrazyCat wrote:... try other things ...
willyw wrote: ...
To further explore and test - try other things.
...
willyw wrote: ...
Experiment!
...
simo wrote: ...
this one outputs blanks not sure why
putserv "privmsg $chan :[getuser $uhandle INFO] "
...
willyw wrote: ...
For each user, *IS* there anything to output for INFO ?
Look up just what that INFO is, here:
https://docs.eggheads.org/mainDocs/tcl- ... extra-info
Perhaps the script is returning just what it finds ... which is nothing.
set created1 [getuser $uhandle XTRA]
set createds [string trimleft created1 "{"]
set createda [string trimright createds "}"]
set created2 [lindex [split $createda] 1]
set createdtime [clock format $created2 -format "%d.%m.%Y - %H:%M:%S"]
putserv "NOTICE $nick :$uhandle - [chattr $uhandle] [getuser $uhandle HOSTS] $createdtime "
I'm having trouble finding exactly what that is. I have a guess, but I wanted to be sure.simo wrote: ...
only it outputs the time of created user in like
{created 1640809963} unlike a more readable date
Is that the correct date and time ?<jack3> .tcl ctime 1640809963
<botnick> Tcl: Wed Dec 29 20:32:43 2021
Code: Select all
set created [lindex [getuser $uhandle XTRA] 0 1]
set createdtime [clock format $created -format "%d.%m.%Y - %H:%M:%S"]
putserv "NOTICE $nick :$uhandle - [chattr $uhandle] [getuser $uhandle HOSTS] $createdtime"
Code: Select all
set created [getuser $uhandle XTRA created]
set createdtime [clock format $created -format "%d.%m.%Y - %H:%M:%S"]
putserv "NOTICE $nick :$uhandle - [chattr $uhandle] [getuser $uhandle HOSTS] $createdtime"