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.

Modifing a script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
F
Felix2003
Voice
Posts: 24
Joined: Fri Feb 06, 2009 8:19 pm

Modifing a script

Post by Felix2003 »

hello all i have a script

Code: Select all

package require http

bind pub - !u stats
proc stats {nick uhost hand chan text} {
set user [lindex [split $text] 0]
if {$text == ""} {
set user $nick
}
if {$user!=""} {
set data [::http::geturl http://lmysite.com/ircstats.php?search=$user]
foreach line [split [::http::data $data] \n] {
if {$line != ""} {
putquick "PRIVMSG $chan :$line"
}
}
::http::cleanup $data
}
}
this is a script were you !u user a user on the irc and it shows there stats

but what i need is for it to display thses stats on join
and if the member isnt a user of my site its bans there nick e.g

this is when the user joins who is a site members
Felix2003 (Felix2003@Felix.The.Crazy.Cat) has joined. «13 people»
<FelixBot> User Details For Felix2003 > forum Rank: Admin / Forum posts: 485 Url: www.mysite.com/userdetails
and so on all this info is pulled from the php script already installed on the server

now if a user joins who isnt a site member i would like his to happen
Felix20031 (Felix2003@Felix.The.Crazy.Cat) has joined. «13 people»
*FelixBot sets mode +b Felix20031!*@*
Felix20031 was kicked by FelixBot (Member Not Found Use Your Site Nick)
then remove the ban say 5mins later

i would also need a excepts so the bot doesnt kick any staff of my forums and me lol

any help would be greatly appreciated

also when a user isnt found the script already returns - No such user, please try again.
F
Felix2003
Voice
Posts: 24
Joined: Fri Feb 06, 2009 8:19 pm

Post by Felix2003 »

guessing no1 can help :/
Post Reply