mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
#97175 09/09/04 10:16 PM
G
Gameaddix
Gameaddix
G
subject explains what i want(sry if i sound rude), i got a guy that whois's me like crazy when i'm busy, and i want it to kill whoever whois's me

Joined: Mar 2004
Posts: 457
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
try
on ^*:snotice:*:{
echo -st ( $+ $server) $+ ) $1-
haltdef
}

then it won't beep on server notices. Or if you insist just modify that to include a kill if whois isin $1-

G
Gameaddix
Gameaddix
G
i'm to dumb to modify that stuff, lol, all the scripts i got i either dled, or got from here (only kinda modify i can do is taking out lines of a big script, to just pull out 1 or 2 scripts)

Joined: Apr 2004
Posts: 755
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 755
who gave you powers to kill ?

G
Gameaddix
Gameaddix
G
i'm root

W
wiebe
wiebe
W
this is very lame.

Joined: Dec 2002
Posts: 787
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 787
This is a help (and general information) forum, not one where people come to be called "lame". If you have nothing good to say, dont say anything at all.

There are valid reasons for what he is asking, and granted, there are infact alternatives, i.e.

- They may very well just remove the flag that is showing them the users that are whois'ing them (Usually +W)

- They can simply ban the user perminently, thus stopping them whois'ing him, but not killing "genuine users".

However, they asked for help, not to be insulted.

On *:SNOTICE:*a /whois on you*:{ kill $2 Don't whois me. }

Would kill the user, if you recieve the following SNOTICE:

-irc.server.com- *** NICKNAME (user@host) did a /whois on you.

Eamonn. [Edited to correct coding mistake.]

G
Gameaddix
Gameaddix
G
the script works (thx for it) but whenever someone connects, it does this

(5:52 PM) -irc.gameaddix.net- *** Notice -- Client exiting: lx100|away [Connection reset by peer]
-
Notice No such nick/channel
-

so, its trying to kill notice for letting me know someone connected, any way to have the script ignore those notice's, without making it so i dont see them?

Joined: Dec 2003
Posts: 259
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 259
on *:snotice:*did a /whois on you.*:/kill $2 Kill message.

not tested.

Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
$2 should be $6

Joined: Dec 2002
Posts: 787
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 787
Bah, my fault, guess thats whatcha get for not thinking while coding, use Milosh's example above and you should be fine.

tidy_trax; $6 would be correct for the on-connect SNOTICE but it is $2 for the on-whois one.

Eamonn.

G
Gameaddix
Gameaddix
G
thx alot guys, another question, is there a way to prevent people from doing a whois on you? so they dont recieve your info

Joined: Dec 2002
Posts: 787
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 787
Usually not, you'd have to look up in the documentation for your IRCd if it supports some kind of user flag.

Eamonn.

G
Gameaddix
Gameaddix
G
ok, couldnt find one to stop a /whois. but does this look right for making the script halt if a certain nickname does it?
Code:
 #on *:SNOTICE:*did a /whois on you.*:{
  if ($network ==   Gameaddix  ) {
    if ($nick != Max) { halt }
  kill $2 Don't whois me, if you need something, simply ask me and i will help you to the best of my ability's }
}
 

Joined: Dec 2003
Posts: 259
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 259
Hi, again.

on *:SNOTICE:*did a /whois on you.*:{
if ($network == Gameaddix ) && ($nick != Max) {
kill $2 Don't whois me, if you need something, simply ask me and i will help you to the best of my ability's
}
}

Joined: Dec 2002
Posts: 787
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 787
$nick in an SNOTICE wouldnt be valid, you want $2.

Gameaddix; you might find; /mode [color:red]yournick -W[/color] will stop you seeing w hen people whois you if the snotice is annoying you.

Eamonn.

Joined: Dec 2003
Posts: 259
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 259
You are right, Coolkill. blush

G
Gameaddix
Gameaddix
G
on *:SNOTICE:*did a /whois on you.*:{
if ($network == Gameaddix ) && ($nick != Max) {
kill $2 Don't whois me, if you need something, simply ask me and i will help you to the best of my ability's
}
}

what i want it to do, is halt if someone's name is Max, cause i got a friend that does a whois on whoever pm's him.

G
Gameaddix
Gameaddix
G
(sry for double post)

ok, finally got it, here it is if anyone wants to use it

Code:
 on *:SNOTICE:*did a /whois on you.*:{
  if ($network ==   Gameaddix  ) {
    if ($2 ==  [color:blue] Max  [/color]) { halt }
  kill $2 Don't whois me, if you need something, simply ask me and i will help you to the best of my ability's }
} 

basically change Gameaddix to your network name, and if you dont want it to kill someone that is using a certain name, then change Max to whoever you dont want it to kill, otherwise take out this whole line: if ($2 == Max ) { halt }

thanks to everyone who helped me figure this out

Joined: Dec 2002
Posts: 787
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 787
The following also work if someone prefers a specific style;

on *:SNOTICE:*did a /whois on you.*:{
if ($network == Gameaddix) && ($2 != Max) {
kill $2 Don't whois me, if you need something, simply ask me and i will help you to the best of my ability's
}
}

Also, you might want to add, if ($2 != $me) as well, just incase.

Eamonn.

Page 1 of 2 1 2

Link Copied to Clipboard