mIRC Homepage

kill on recieving a /whois

Posted By: Gameaddix

kill on recieving a /whois - 09/09/04 10:16 PM

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
Posted By: Danthemandoo

Re: kill on recieving a /whois - 09/09/04 10:20 PM

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-
Posted By: Gameaddix

Re: kill on recieving a /whois - 09/09/04 11:08 PM

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)
Posted By: Mpdreamz

Re: kill on recieving a /whois - 10/09/04 08:29 AM

who gave you powers to kill ?
Posted By: Gameaddix

Re: kill on recieving a /whois - 10/09/04 10:10 AM

i'm root
Posted By: wiebe

Re: kill on recieving a /whois - 10/09/04 12:07 PM

this is very lame.
Posted By: Coolkill

Re: kill on recieving a /whois - 10/09/04 09:24 PM

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.]
Posted By: Gameaddix

Re: kill on recieving a /whois - 10/09/04 09:55 PM

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?
Posted By: milosh

Re: kill on recieving a /whois - 10/09/04 10:25 PM

on *:snotice:*did a /whois on you.*:/kill $2 Kill message.

not tested.
Posted By: tidy_trax

Re: kill on recieving a /whois - 10/09/04 10:41 PM

$2 should be $6
Posted By: Coolkill

Re: kill on recieving a /whois - 10/09/04 11:09 PM

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.
Posted By: Gameaddix

Re: kill on recieving a /whois - 10/09/04 11:49 PM

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

Re: kill on recieving a /whois - 11/09/04 09:09 AM

Usually not, you'd have to look up in the documentation for your IRCd if it supports some kind of user flag.

Eamonn.
Posted By: Gameaddix

Re: kill on recieving a /whois - 11/09/04 02:24 PM

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 }
}
 
Posted By: milosh

Re: kill on recieving a /whois - 11/09/04 09:06 PM

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
}
}
Posted By: Coolkill

Re: kill on recieving a /whois - 11/09/04 10:40 PM

$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.
Posted By: milosh

Re: kill on recieving a /whois - 11/09/04 10:54 PM

You are right, Coolkill. blush
Posted By: Gameaddix

Re: kill on recieving a /whois - 12/09/04 12:39 AM

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.
Posted By: Gameaddix

Re: kill on recieving a /whois - 12/09/04 03:35 AM

(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
Posted By: Coolkill

Re: kill on recieving a /whois - 12/09/04 10:52 AM

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.
Posted By: Armada

Re: kill on recieving a /whois - 13/09/04 09:54 AM

This looks like UnrealIRCD why not just //mdoe $me -W instead?
© 2019 mIRC Discussion Forums