mIRC Home    About    Download    Register    News    Help

Print Thread
#93930 13/08/04 01:17 AM
Joined: Apr 2003
Posts: 61
G
gaui Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Apr 2003
Posts: 61
When I use the dot "." infront of a command, it should not output anything, but it does!

Here's my code:
Code:
#csprot on
on @!*:JOIN:#php.is:{
  .whois $nick
}

raw 319:*:{
  if ($istok($lower($3-),#counter-strike.is,32)) && ($istok($lower($3-),#php.is,32)) {
    msg #php.is Counter-Striker alert! ( $+ $2 $+ )
  }
}
#csprot end

Now, this should "whois" the person silent, but it doesn't.

This is what I get:
Code:
[01:12:59] *** asddddf (~asdf@php.is) has joined #php.is
[01:13:00] (gaui): Counter-Striker alert! (asddddf)
[01:13:00] ••• ········································
[01:13:00] ••• asddddf is ~asdf@php.is
[01:13:00] ••• asddddf is «test»
[01:13:00] ••• asddddf on irc.simnet.is
[01:13:00] ••• asddddf on #php.is, #counter-strike.is
[01:13:00] ••• ········································


Thanks in advance.


__________________________
Curiosity killed the cat.
Joined: Jul 2004
Posts: 169
S
Vogon poet
Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
it works only for events from user side (your side)
like :

.msg
.notice
.quote
.say


what you ask is RAW message itz server reply of user info (server side) you cant silent (stop) server reply, you can only hide RAW events

Joined: Apr 2003
Posts: 61
G
gaui Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Apr 2003
Posts: 61
Well, I dont want to show the whois info when this triggers... it's kinda annoying.

I want to whois the person, but I dont want to output his info.

Is there any way to skip outputing that?


__________________________
Curiosity killed the cat.
Joined: Jul 2004
Posts: 169
S
Vogon poet
Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
yes, you can hide server reply but when you use /whois then it wont be displayed ever:

put this in remotes

raw 311:*:halt
raw 307:*:halt
raw 308:*:halt
raw 309:*:halt
raw 310:*:halt
raw 313:*:halt
raw 317:*:halt
raw 319:*:halt
raw 312:*:halt
raw 301:*:halt

Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Code:
#csprot on
on @!*:JOIN:#php.is: whois $nick | .enable #WhoisHide | .timerWhoisHide 1 10 .disable #WhoisHide
raw 319:*:{
  if ($istok($lower($3-),#counter-strike.is,32)) && ($istok($lower($3-),#php.is,32)) {
    msg #php.is Counter-Striker alert! ( $+ $2 $+ )
  }
 halt
}
#csprot end
#WhoisHide off
raw 311:*:halt
raw 307:*:halt
raw 308:*:halt
raw 309:*:halt
raw 310:*:halt
raw 313:*:halt
raw 317:*:halt
raw 312:*:halt
raw 301:*:halt
#WhoisHide end
This hides the /whois messages only when #CSprot is on AND a nick joins #php.is. After thw /whois is done, it re-enables the raws again. smile


"All we are saying is give peace a chance" -- John Lennon
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
A little optimizing. smile

#csprot on
on @*:JOIN:#php.is:whois $nick | .enable #WhoisHide
; ^^ No need for the ! (not me) prefix here, you can never be opped when you join a channel. smile
#csprot end
#WhoisHide off
raw 319:*:{
if ($istok($3-,#counter-strike.is,32)) && ($istok($3-,#php.is,32)) {
;^^ No need for $lower() $*tok identifiers are case insensitive by default.
msg #php.is Counter-Striker alert! ( $+ $2 $+ )
}
halt
}
raw 311:*:halt
raw 307:*:halt
raw 308:*:halt
raw 309:*:halt
raw 310:*:halt
raw 313:*:halt
raw 317:*:halt
raw 312:*:halt
raw 301:*:halt
raw 318:.disable #WhoisHide | halt
#WhoisHide end

$istokcs is the case sensitive version of $istok, same for the ther $*tok's dealing with strings. smile

Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Those 2 strings I just copied from gaui's 1st post and added the other stuff. I don't like changing the script too much from its original post, unless it's really necessary, because people might feel I little lost smile


"All we are saying is give peace a chance" -- John Lennon

Link Copied to Clipboard