kill on recieving a /whois
#97175
09/09/04 10:16 PM
|
Joined: Sep 2004
Posts: 85
Gameaddix
OP
Babel fish
|
OP
Babel fish
Joined: Sep 2004
Posts: 85 |
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
|
|
|
Re: kill on recieving a /whois
#97176
09/09/04 10:20 PM
|
Joined: Mar 2004
Posts: 457
Danthemandoo
Fjord artisan
|
Fjord artisan
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-
|
|
|
Re: kill on recieving a /whois
#97177
09/09/04 11:08 PM
|
Joined: Sep 2004
Posts: 85
Gameaddix
OP
Babel fish
|
OP
Babel fish
Joined: Sep 2004
Posts: 85 |
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)
|
|
|
Re: kill on recieving a /whois
#97178
10/09/04 08:29 AM
|
Joined: Apr 2004
Posts: 759
Mpdreamz
Hoopy frood
|
Hoopy frood
Joined: Apr 2004
Posts: 759 |
who gave you powers to kill ?
$maybe
|
|
|
Re: kill on recieving a /whois
#97179
10/09/04 10:10 AM
|
Joined: Sep 2004
Posts: 85
Gameaddix
OP
Babel fish
|
OP
Babel fish
Joined: Sep 2004
Posts: 85 |
|
|
|
Re: kill on recieving a /whois
#97180
10/09/04 12:07 PM
|
Joined: May 2004
Posts: 95
wiebe
Babel fish
|
Babel fish
Joined: May 2004
Posts: 95 |
|
|
|
Re: kill on recieving a /whois
#97181
10/09/04 09:24 PM
|
Joined: Dec 2002
Posts: 788
Coolkill
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 788 |
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.]
|
|
|
Re: kill on recieving a /whois
#97182
10/09/04 09:55 PM
|
Joined: Sep 2004
Posts: 85
Gameaddix
OP
Babel fish
|
OP
Babel fish
Joined: Sep 2004
Posts: 85 |
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?
|
|
|
Re: kill on recieving a /whois
#97183
10/09/04 10:25 PM
|
Joined: Dec 2003
Posts: 261
milosh
Fjord artisan
|
Fjord artisan
Joined: Dec 2003
Posts: 261 |
on *:snotice:*did a /whois on you.*:/kill $2 Kill message.
not tested.
velicha dusha moja Gospoda
|
|
|
Re: kill on recieving a /whois
#97184
10/09/04 10:41 PM
|
Joined: Nov 2003
Posts: 2,327
tidy_trax
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
New username: hixxy
|
|
|
Re: kill on recieving a /whois
#97185
10/09/04 11:09 PM
|
Joined: Dec 2002
Posts: 788
Coolkill
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 788 |
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.
|
|
|
Re: kill on recieving a /whois
#97186
10/09/04 11:49 PM
|
Joined: Sep 2004
Posts: 85
Gameaddix
OP
Babel fish
|
OP
Babel fish
Joined: Sep 2004
Posts: 85 |
thx alot guys, another question, is there a way to prevent people from doing a whois on you? so they dont recieve your info
|
|
|
Re: kill on recieving a /whois
#97187
11/09/04 09:09 AM
|
Joined: Dec 2002
Posts: 788
Coolkill
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 788 |
Usually not, you'd have to look up in the documentation for your IRCd if it supports some kind of user flag.
Eamonn.
|
|
|
Re: kill on recieving a /whois
#97188
11/09/04 02:24 PM
|
Joined: Sep 2004
Posts: 85
Gameaddix
OP
Babel fish
|
OP
Babel fish
Joined: Sep 2004
Posts: 85 |
ok, couldnt find one to stop a /whois. but does this look right for making the script halt if a certain nickname does it? #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 }
}
|
|
|
Re: kill on recieving a /whois
#97189
11/09/04 09:06 PM
|
Joined: Dec 2003
Posts: 261
milosh
Fjord artisan
|
Fjord artisan
Joined: Dec 2003
Posts: 261 |
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 } }
velicha dusha moja Gospoda
|
|
|
Re: kill on recieving a /whois
#97190
11/09/04 10:40 PM
|
Joined: Dec 2002
Posts: 788
Coolkill
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 788 |
$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.
|
|
|
Re: kill on recieving a /whois
#97191
11/09/04 10:54 PM
|
Joined: Dec 2003
Posts: 261
milosh
Fjord artisan
|
Fjord artisan
Joined: Dec 2003
Posts: 261 |
You are right, Coolkill.
velicha dusha moja Gospoda
|
|
|
Re: kill on recieving a /whois
#97192
12/09/04 12:39 AM
|
Joined: Sep 2004
Posts: 85
Gameaddix
OP
Babel fish
|
OP
Babel fish
Joined: Sep 2004
Posts: 85 |
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.
|
|
|
Re: kill on recieving a /whois
#97193
12/09/04 03:35 AM
|
Joined: Sep 2004
Posts: 85
Gameaddix
OP
Babel fish
|
OP
Babel fish
Joined: Sep 2004
Posts: 85 |
(sry for double post) ok, finally got it, here it is if anyone wants to use it 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
|
|
|
Re: kill on recieving a /whois
#97194
12/09/04 10:52 AM
|
Joined: Dec 2002
Posts: 788
Coolkill
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 788 |
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.
|
|
|
|
|