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.

getuser $user "hosts" error

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

getuser $user "hosts" error

Post by r0t3n »

error in my userlist:

Tcl error [user_list]: list element in quotes followed by "HOSTS"]" instead of space

The script:

Code: Select all

bind pub o|f !userlist user_list 

proc user_list {nick uhost hand chan text} { 
if {[userlist |amnovf $chan] == ""} { 
putserv "NOTICE $nick :No users found in my userlist for $chan " 
return 0 
} 
putquick "NOTICE $nick :Userlist for $chan " 
foreach user [userlist |amnovf $chan] {
if {[set usersnick [hand2nick $user]] == ""}  
putquick "NOTICE $nick :(( Handle: $user || Nickname: Offline, or not in any of the bots channels. || Host(s): [getuser $user "HOSTS"] || Channel Flags: +[lindex [split [chattr $user $chan] |] 1] ))"
} else {
if {[set usersnick [hand2nick $user]] != ""}  
putquick "NOTICE $nick :(( Handle: $user || Nickname: $usersnick || Host(s): [getuser $user "hosts"] || Channel Flags: +[lindex [split [chattr $user $chan] |] 1] ))"
}
putquick "NOTICE $nick :End of list." 
}

putlog "Userlist.tcl By Tosser^^ Loaded"
I dont know whats wrong, i tried [getuser $user "hosts""] but that dont work, please help ;p

Thanks in advance!!
r0t3n @ #r0t3n @ Quakenet
Locked