Well the code I posted was meant to be inserted into the on text event, but there isn't one in the code you posted so I take it it's only you who can type "!imdb yada yada..." In which case, add that code to the on input event like so..
Change this line
on *:INPUT:#:{ if ($_trigger($1)) { _input $chan $cid $nick $2- } }
To this
on *:INPUT:#:{
if ($_trigger($1)) {
if %imdbcontrol { return }
inc -u300 %imdbcontrol
_input $chan $cid $nick $2-
}
}
Don't forget to remove the code you just added from my last post though
