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.

Script Request

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
w
whittinghamj
Op
Posts: 103
Joined: Sun May 21, 2006 4:50 pm

Script Request

Post by whittinghamj »

howdy yall. I know this kind of script exists, just not sure where.

I am looking for a script to do the following.

<user>!user <nick>
<botnick> <nick> is in my list as <hangle-in-bot-userfile> (eg Quest is quest)
<botnick> User hosts are *!ident@*.domain.net
<botnick> <nick> was added by <person> on <added-date>

Any suggestions? Its just reading the userfile and sending the info back to the channel. Suggestions would be great. Thanks
w
whittinghamj
Op
Posts: 103
Joined: Sun May 21, 2006 4:50 pm

Post by whittinghamj »

does anyone have any suggestions for this please?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

There are tonnes of scripts in the Tcl Archive that would meet your requirements.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
w
whittinghamj
Op
Posts: 103
Joined: Sun May 21, 2006 4:50 pm

Post by whittinghamj »

I found a script in the TCL section and modded it to do kind of what I want. The script I found was designed the show users for a specific channel and not the whole list. I modded it to list the entire file and not just for a specific channel.

The question I have now is this. Right now its lists EVERYTONE in the user file on the !userlist command. I need to use !userlist <nick> and the code goes off and shows only the userlist info for that specific user. Here is the code so fare, FULLY WORKING which shows everyone in the userlist.

Code: Select all

bind pub o|o !userlist user_list 

proc user_list {nick uhost hand chan text} { 
if { [userlist |amnovf $chan] == "" } { 
foreach user [userlist |amnovf] { 
set usersnick [hand2nick $user] 
if { $usersnick == "" } { 
putquick "PRIVMSG $chan :1Handle: 4$user" 
putquick "PRIVMSG $chan :1Nickname: 4$usersnick"
putquick "PRIVMSG $chan :1Host(s): 4[getuser $user HOSTS]"
} else { 
putquick "PRIVMSG $chan :1Handle: 4$user" 
putquick "PRIVMSG $chan :1Nickname: 4$usersnick"
putquick "PRIVMSG $chan :1Host(s): 4[getuser $user HOSTS]"
} 
} 
putquick "NOTICE $nick :End of list." 
} 
}
Hope someone can help me with this please to show just the $arg part eg a specific user.

Cheers guys. Any help would be extremly usful and greatfully received.
w
whittinghamj
Op
Posts: 103
Joined: Sun May 21, 2006 4:50 pm

Post by whittinghamj »

anyone? dragnlord? sir fitz? please......

danke
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Read tcl-commands.doc in your bots ~doc folder.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Post Reply