Code: Select all
} elseif {($o_rating == 1) && ([regexp \[.\]*User\ Rating\[.\]* $line] > 0)} {
# the user rating
set j [expr $i + 3]
set line2 [lindex $lines $j]
set j [expr $i + 4]
set line3 [lindex $lines $j]
regsub -all \<\[^\>\]*\> $line3 "" rating
regsub -all \ \; $rating " " rating
regsub -all \[\ \t\]+ $rating " " rating
set rating [string trim $rating " "]
set goldstars [regexp -all goldstar $line2]
set greystars [expr 10 - $goldstars]
# generatign the rating bar
set marker "*"
set rating_bar "^C11\[^C7"
for {set i2 0} {$i2 < $goldstars} {incr i2 1} {
set rating_bar "$rating_bar$marker"
}
set marker "-"
set rating_bar "$rating_bar^C14"
for {set i3 0} {$i3 < $greystars} {incr i3 1} {
set rating_bar "$rating_bar$marker"
}
set rating_bar "$rating_bar^C11\]^C"
putserv "NOTICE $nick :$rating $rating_bar"
}
Yeah, I know what you mean, thats why I added the option to display results to the channel. someone does the trigger in the channel then the results go to the channel as well that way everyone gets to see the results. Personally, the way I see it is if you dont mind the triggers being done in the channel you wont mind the results displayed in the channel either, this is obviously assuming you dont have a channel full of lamers that will abuse and annoy people with it, but I use +b if anyone starts messing around with it.Davy wrote:You know what would be really good for this script?!
If it could cache the last 5 requests, as i use it in a channel and when one user sees someone do a !IMDB <movie> they usually do it too, just to see what it does. It would top off such a good script in my opinion
Props to whoever made it and those that have updated and improved it though, its my most used script and most usefull.