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.

Userlist script, just made, please check if it works!!

Old posts that have not been replied to for several years.
Locked
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Userlist script, just made, please check if it works!!

Post by r0t3n »

Hello, i just made this userlist script, dont know if it will work, please check it and feedback the info to me, Thanks in advance!!

Code: Select all

bind pub o|f !userlist user_list

proc user_list {nick uhost hand chan text} {
if {[userlist] == ""} {
putserv "NOTICE $nick :No users found in my userlist for $chan"
return 0
}
putserv "NOTICE $nick :Userlist for $chan "
foreach user [userlist $chan] {
putserv "NOTICE $nick :\(( $user \|| +[lindex [split [chattr $user -|- $chan] \|] $user]
}
putserv "NOTICE $nick :End of list."
}
r0t3n @ #r0t3n @ Quakenet
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

The best thing you can do is, test it yourself. I don't know the correct output for the elements of [userlist] is.

But, you can first try:

Code: Select all

if {[llength [userlist]] == 0} {
 putserv "NOTICE $nick :No users found in my userlist for $chan"
 return 0
} 
foreach user [userlist] {
 putserv "NOTICE $nick :$user"
}
putserv "NOTICE $nick :End of list."
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Dbl posting? Sir_Fz is already assisting :arrow: http://forum.egghelp.org/viewtopic.php?t=9780
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

;p i posted this 2 minutes before he replied ;p
r0t3n @ #r0t3n @ Quakenet
Locked