| View previous topic :: View next topic |
| Author |
Message |
Felix2003 Voice
Joined: 06 Feb 2009 Posts: 24
|
Posted: Sat May 30, 2009 1:01 pm Post subject: Modifing a script |
|
|
hello all i have a script
| Code: | 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
| Quote: | 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
| Quote: | 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. |
|
| Back to top |
|
 |
Felix2003 Voice
Joined: 06 Feb 2009 Posts: 24
|
Posted: Sat Aug 08, 2009 1:07 pm Post subject: |
|
|
| guessing no1 can help :/ |
|
| Back to top |
|
 |
|