mIRC Home    About    Download    Register    News    Help

Print Thread
#160730 29/09/06 10:44 PM
Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
hello

can you tell me please why this script makes me get my whois on my status repeatedly?

thanks

Code:
 
on *:open:?:{
  .enable #ignore
  whois $target
}
#ignore off
raw *:*:{
  if ($istok(301 310 311 312 313 317 318 319 431,$numeric,32)) { haltdef }
  if ($numeric == 318) { .disable #ignore }
  elseif ($numeric == 319) {
    var %channels = #sex, #gay*, @#*, %i = 1, %v1
    while ($gettok(%channels,%i,32)) {
      %v1 = $v1
      if ($istok($3-,%v1,32)) || ($wildtok($3-,%v1,1,32)) {
        .ignore -pntidu10 $2
        if ($window($2)) { window -c $2 }
        return
      }
      inc %i
    }
  }
}
#ignore end
 


and

Code:
on *:open:?:hi*: { .timer1 1 3 msg $nick hello! }
  


I have some other scripts, but I cant locate the source of the problem

thanks

#160731 29/09/06 11:47 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Because you're whoising the target of the open command, which is always going to be you when someone opens a pm/query window to you. You probably want to change $target to $nick, as I'm presuming you want to /whois the person that's opening the pm/query window, rather than whoising yourself.


Link Copied to Clipboard