|
Joined: Sep 2004
Posts: 85
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
|
|
|
|
Joined: Mar 2004
Posts: 457
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-
|
|
|
|
Joined: Sep 2004
Posts: 85
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)
|
|
|
|
Joined: Apr 2004
Posts: 759
Hoopy frood
|
Hoopy frood
Joined: Apr 2004
Posts: 759 |
who gave you powers to kill ?
$maybe
|
|
|
|
Joined: Sep 2004
Posts: 85
Babel fish
|
OP
Babel fish
Joined: Sep 2004
Posts: 85 |
|
|
|
|
Joined: May 2004
Posts: 95
Babel fish
|
Babel fish
Joined: May 2004
Posts: 95 |
|
|
|
|
Joined: Dec 2002
Posts: 788
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.]
|
|
|
|
Joined: Sep 2004
Posts: 85
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?
|
|
|
|
Joined: Dec 2003
Posts: 261
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
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
New username: hixxy
|
|
|
|
Joined: Dec 2002
Posts: 788
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.
|
|
|
|
Joined: Sep 2004
Posts: 85
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
|
|
|
|
Joined: Dec 2002
Posts: 788
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.
|
|
|
|
Joined: Sep 2004
Posts: 85
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 }
}
|
|
|
|
Joined: Dec 2003
Posts: 261
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
|
|
|
|
Joined: Dec 2002
Posts: 788
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.
|
|
|
|
Joined: Dec 2003
Posts: 261
Fjord artisan
|
Fjord artisan
Joined: Dec 2003
Posts: 261 |
You are right, Coolkill.
velicha dusha moja Gospoda
|
|
|
|
Joined: Sep 2004
Posts: 85
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.
|
|
|
|
Joined: Sep 2004
Posts: 85
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
|
|
|
|
Joined: Dec 2002
Posts: 788
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.
|
|
|
|
|