mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2013
Posts: 137
R
raycomp Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: May 2013
Posts: 137
I am using the following script to notify being whois'd:

:IRCop Whois Notifyer
;********************
#whoisnotice on
on *:SNOTICE:*whois on you*: {
if (!%x) { set -u10 %x on

echo -a 8,10[ALERT] 12 $2 4 ( $address($2,2) ) 12did a whois on you on server 4[ $server ] 12at 4[ $time(.:h:nn:sstt:.) $date ].
inc %now
NOTICE $2 12 You're Whois on me was successful: 4I'm an IRCops can I help you? 12[Thank you for the interrest]
}

}
#whoisnotice end
menu menubar {
Whois Watcher
.Whois Count: echo -a 4********12 I have been whois'd 8,10[ %now ] 12times4*********
.Enabled: /enable #whoisnotice
.Disabled:/disable #whoisnotice
}

This also send a message back to person whois'd me
I would like to add extra option to not send mesage back to the other user:

in other word something like:

Recieve Message
Receive/Send Message
Disable All

I really have tried different ways but no success, Greeting from South Africa


Last edited by raycomp; 04/05/13 03:55 PM.
Joined: Feb 2003
Posts: 3,412
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
If you dont want the notice to be sent, then you can remove the line or just add ; infront of it, then it will not be sent.

;NOTICE $2 12 You're Whois on me was successful: 4I'm an IRCops can I help you? 12[Thank you for the interrest]

Joined: May 2013
Posts: 137
R
raycomp Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: May 2013
Posts: 137
thank you, I want option to send or not to send

D
Deega
Deega
D
Set a variable if you want the notice sent, unset if you don't
Code:
  .Enabled:set %whoisnotice 1 | enable #whoisnotice
  .Enabled (no /notice):unset %whoisnotice | enable #whoisnotice
and check for it in the event.
Code:
    if (%whoisnotice) NOTICE $2 12 You're Whois on me was successful: 4I'm an IRCops can I help you? 12[Thank you for the interrest]


Joined: May 2013
Posts: 137
R
raycomp Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: May 2013
Posts: 137
Thank you Deega for the help.

On more question if you would:

I have two items to select from as per code above

.Enabled: /enable #whoisnotice
.Disabled:/disable #whoisnotice

Any idea how to add [X] behind the item selected? Like

.Enabled [x] if this one was selected
.Disabled


Last edited by raycomp; 05/05/13 01:17 PM.
D
Deega
Deega
D
Like this
Code:
.Enabled $chr(9) $iif($group(#whoisnotice) == on,[X]):enable #whoisnotice
.Disabled $chr(9) $iif($group(#whoisnotice) != on,[X]):disable #whoisnotice


Joined: May 2013
Posts: 137
R
raycomp Offline OP
Vogon poet
OP Offline
Vogon poet
R
Joined: May 2013
Posts: 137
Thank you, just what I needed, keep up the good work


Link Copied to Clipboard