mIRC Home    About    Download    Register    News    Help

Print Thread
#134877 05/11/05 09:04 PM
Joined: Apr 2003
Posts: 61
G
gaui Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Apr 2003
Posts: 61
How can I hide the whois reply? And why does it always msg #laggari when I whois someone who's on #counter-strike.is ? Can't I trigger it only when someone joins #laggari ?

Here's the code...

Code:
#csprot on
on @!*:JOIN:#laggari:.whois $nick | .enable #WhoisHide | .timerWhoisHide 1 10 .disable #WhoisHide
raw 319:*:{
  if ($istok($lower($3-),#counter-strike.is,32)) {
    msg #laggari $2 plays Counter-Strike!
  }
  haltdef
}
#csprot end
#WhoisHide off
raw 311:*:haltdef
raw 307:*:haltdef
raw 308:*:haltdef
raw 309:*:haltdef
raw 310:*:haltdef
raw 313:*:haltdef
raw 317:*:haltdef
raw 312:*:haltdef
raw 301:*:haltdef
#WhoisHide end


Still, it shows...

Code:
[21:00:53] <tester> gauipunkturis plays Counter-Strike!
[21:00:53] *** ········································
[21:00:53] *** gauipunkturis is foo@yatta.org
[21:00:53] *** gauipunkturis is «Guðmundur Rúnar Kristjánsson»
[21:00:53] *** gauipunkturis on irc.simnet.is
[21:00:53] *** gauipunkturis on #laggari, #counter-strike.is
[21:00:53] *** gauipunkturis idle 12 min 45 s, signed on «Sat 5th Nov 2005 08:48p»
[21:00:53] *** ········································

Last edited by gaui; 05/11/05 09:15 PM.

__________________________
Curiosity killed the cat.
#134878 06/11/05 01:56 AM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Try this

Code:
 #csprot on
on @*:JOIN:#laggari: { 
  .whois $nick 
  .enable #WhoisHide 
}

raw 319:*:{
  if ( $istok($lower($3-),#counter-strike.is,32) ) msg #laggari $2 plays Counter-Strike!
  halt
}

#csprot end

#WhoisHide off

raw *:*: {
  if ( $istok(301 311 313 312 330 317,$numeric,32) ) halt
  elseif ( $numeric == 318 ) { .disable #WhoisHide | halt }
}

#WhoisHide end 


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#134879 06/11/05 07:56 AM
Joined: Apr 2003
Posts: 61
G
gaui Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Apr 2003
Posts: 61
That works! But when I do /whois on someone who's not on #laggari and hasn't joined #laggari but is on #counter-strike.is - it also msg's #laggari with the message. frown


__________________________
Curiosity killed the cat.
#134880 06/11/05 08:13 AM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Try this now.

Code:
 

on @*:JOIN:#laggari: { 
  .whois $nick 
  .enable #WhoisHide 
.enable #csprot
}

#csprot on

raw 319:*:{
  if ( $istok($lower($3-),#counter-strike.is,32) ) { 
           msg #laggari $2 plays Counter-Strike!
           .disable #csprot
  }
  halt
}

#csprot end

#WhoisHide off

raw *:*: {
  if ( $istok(301 311 313 312 330 317,$numeric,32) ) halt
  elseif ( $numeric == 318 ) { .disable #WhoisHide | halt }
}

#WhoisHide end  

#134881 07/11/05 01:30 PM
Joined: Apr 2003
Posts: 61
G
gaui Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Apr 2003
Posts: 61
Works perfectly. Thanks a lot. smile


__________________________
Curiosity killed the cat.

Link Copied to Clipboard