mIRC Home    About    Download    Register    News    Help

Print Thread
#93395 09/08/04 11:35 AM
Joined: Dec 2002
Posts: 45
P
piko Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Dec 2002
Posts: 45
Code:
on ^*:OPEN:?:*: {
  var %autoop matches autoop
  if (($nick == -psyBNC) && (%autoop iswm $1-)) {halt}
  else echo $color(normal text) -t $nick info: query with $nick  $+ $address
  echo $color(other text) -t $nick - 
  haltdef
} 


what i'm trying to do here is that i want to block -psybnc query when someone joins a chan where he has autoop.

can someone pls help me? smile

#93396 09/08/04 07:55 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Sorry, I don't get it.

As far as I know, -psyBNC may msg/notice you during your logon, asking for a password or listing the BNC commands. How is that related to auto-op?

#93397 10/08/04 08:06 AM
Joined: Dec 2002
Posts: 45
P
piko Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Dec 2002
Posts: 45
well, when someone joins the chan, and i am online, i get this msg:
<-psyBNC> User piko(piko!piko@*.com) matches autoop(piko!piko@*), opped on #XXXXXXXXXX

#93398 10/08/04 01:13 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
This code goes the the Remote, above the rest of your On open scripts.

On [color:crimson]^*:open:?:User*matches autoop*: if $nick == -psyBNC { haltdef }[/color]

The combination of ^ & haltdef prevents the query window from opening.

Note that when ^ is used, you can't /echo to the window, simply because it doesn't exist. The solution is to move your custom /echo's to a separate event,

On *:open:?:*:{
  • echo -tce normal $nick $+(info: query with ,$nick, $address)
}

#93399 10/08/04 10:47 PM
Joined: Dec 2002
Posts: 45
P
piko Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Dec 2002
Posts: 45
thx for the help mate laugh

#93400 11/08/04 01:01 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
You're welcomd laugh


Link Copied to Clipboard