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.

another userlist error ;p

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

another userlist error ;p

Post by r0t3n »

Some error, i dont know how to fix it.

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] { 
putserv "NOTICE $nick :\(( $user \|| +[lindex [split [chattr $user -|- $chan] \|] end] \))" 
} 
putserv "NOTICE $nick :End of list." 
}

putlog "Userlist.tcl By Tosser^^ Loaded"
The error is that when i type !userlist in the channel, it displays people who are not added for that channel, like it displays the global masters in the userlist for a channel, i dont want it to, i only want it to display the users and the users flags for that channel, got anything else like Q/L or global owner/masters can you please help me with htis, Thanks!!
r0t3n @ #r0t3n @ Quakenet
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Code: Select all

foreach user [userlist] {
putserv "NOTICE $nick :\(( $user \|| +[lindex [split [chattr $user -|- $chan] \|] end] \))"
You use chattr all wrong.

Try:

Code: Select all

foreach user [userlist |amnov $chan] {
  putserv "NOTICE $nick :(( $user || +[lindex [split [chattr $user $chan] |] 1] ))"
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

thanks MeTroiD

Also, how can i make it

(( Handle || Host || flags ))

so add a hostmask in the userlist, and i dont know if possible,

(( handle || current irc nickname or offline is they are offline || host || flags ))

Please help with these if you can, i have no idea how to do the nickname thing, and i dont know how to get the host that the user is added with. Thanks!!
r0t3n @ #r0t3n @ Quakenet
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

Also, this is not a error with the userlist itself, but im on a bnc, and i type !userlist and some other commands on my eggy like !adduser and !chattr and nothing happens, and then i go onto my bot, and type the commands, and it works. Is this because im on a bnc. And yes, the hosts are the same, and both are added. Please help, Thanks!!
r0t3n @ #r0t3n @ Quakenet
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

yeah, bncs hate eggdrops ;)
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

well, thats annoying. You cant use a eggdrop when on bnc, thats so stupid ;p!!
r0t3n @ #r0t3n @ Quakenet
Locked