|
Joined: Mar 2005
Posts: 3
Self-satisified door
|
OP
Self-satisified door
Joined: Mar 2005
Posts: 3 |
Ok, well i have been looking everywhere for a simple Private Message blocker code, i don't want one that won't let me get the persons pm.. i want one so when someone private messages me, it says about 3 lines or 4 i had one before that i had made but i can't remember now.. just wondering if anyone can like setup a little code of one for me, that would be nice
|
|
|
|
Joined: Dec 2002
Posts: 145
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 145 |
Ok, well i have been looking everywhere for a simple Private Message blocker code, i don't want one that won't let me get the persons pm .. i want one so when someone private messages me, it says about 3 lines or 4 ... You want a blocker which doesn't block ??? Can you better explain yourself? What do you want the snippet to do?
|
|
|
|
Joined: Mar 2005
Posts: 3
Self-satisified door
|
OP
Self-satisified door
Joined: Mar 2005
Posts: 3 |
Well ok, i had a private message blocker, it blocks and i don't know people pm me, the one i want is so when people pm me, its like says something in the pm like im not here or something like that, so where i still get the pm but it tells them a line..
|
|
|
|
Joined: Feb 2005
Posts: 194
Vogon poet
|
Vogon poet
Joined: Feb 2005
Posts: 194 |
on *:open:?: {
msg $nick <message>
} Here is a complete blocker. It does what I thought you had originally requested, which is to close the pm after they say 3 or 4 lines. Here it is just in case: on *:open:?: {
set -s %pm.block $nick
}
on *:text:*:?: {
if (%pm.block = $nick) {
inc %lines 1
if (%lines > 3) {
close -m $nick
}
}
} It may not be the most efficiant. I didnt put much thought into it. LOL. Then again, that is probably my best anyway. :tongue:
"God sometimes puts us in the dark for us to see the light"
|
|
|
|
Joined: Mar 2005
Posts: 3
Self-satisified door
|
OP
Self-satisified door
Joined: Mar 2005
Posts: 3 |
yay, thank you alhammer that works perfectly, now all i have to do is change the code around a little bit
|
|
|
|
Joined: Feb 2005
Posts: 194
Vogon poet
|
Vogon poet
Joined: Feb 2005
Posts: 194 |
No problem. I was just really suprised I could actually answer someone's question. :tongue:
"God sometimes puts us in the dark for us to see the light"
|
|
|
|
Joined: Nov 2004
Posts: 332
Fjord artisan
|
Fjord artisan
Joined: Nov 2004
Posts: 332 |
so am i where did u get it
The Kodokan will move you, one way or another.
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
lol, why?. Are you looking for a source for scripts? <snicker snicker>
|
|
|
|
Joined: Feb 2005
Posts: 194
Vogon poet
|
Vogon poet
Joined: Feb 2005
Posts: 194 |
Im not sure what you are talking about. You may have been sarcastic about the simple whisper reply. However, if your talking about the other one, lol, i did do that. I didnt get it from anything else except memory. LOL. I'm learning...It's just taking forever! :tongue:
"God sometimes puts us in the dark for us to see the light"
|
|
|
|
Joined: Nov 2004
Posts: 332
Fjord artisan
|
Fjord artisan
Joined: Nov 2004
Posts: 332 |
did you just punctuate a sentence with ?. in any case no in fact i dont use anything i havent written
The Kodokan will move you, one way or another.
|
|
|
|
Joined: Nov 2004
Posts: 332
Fjord artisan
|
Fjord artisan
Joined: Nov 2004
Posts: 332 |
so what happens if two people query them in roughly the same time span?
im allowed to be skeptical last i checked you didn't know how to write an alias.
It seems your finally making progress, so good for you. Congratulations on your new found grasp of scripting. (it's a good bit of code)
Last edited by ricky_knuckles; 06/03/05 05:52 AM.
The Kodokan will move you, one way or another.
|
|
|
|
Joined: Feb 2005
Posts: 194
Vogon poet
|
Vogon poet
Joined: Feb 2005
Posts: 194 |
Well, this one works for up to 2 people. Other than that, i dont know how. I'm sure it would involve some $calc stuff, which I havent learned yet. Hope your satisfied. on *:open:?: {
if (%pm.block = $null) { set -s %pm.block $nick | timer 1 30 set -s %pm.block $null }
else { set -s %pm.block2 $nick | timer 1 30 set -s %pm.block2 $null }
}
on *:text:*:?: {
if (%pm.block = $nick) { inc %lines.block 1 { if (%lines.block = 3) { close -m $nick | set -s %lines.block 0 } } }
elseif (%pm.block2 = $nick) { inc %lines.block2 1 { if (%lines.block2 = 3) { close -m $nick | set -s %lines.block2 0 } }
else { return }
}
}
"God sometimes puts us in the dark for us to see the light"
|
|
|
|
Joined: Nov 2004
Posts: 332
Fjord artisan
|
Fjord artisan
Joined: Nov 2004
Posts: 332 |
i was just giving you a hard time im fairly impressed with your code that might make me easily impressed but so be it
my gripe with your code if any it that it merely closes the query window in which case msgs will still either open subsequent query windows or still reach the user and the use of return(probably because im just simple)
but the person who requested the code seemed happy enough
Last edited by ricky_knuckles; 06/03/05 09:06 AM.
The Kodokan will move you, one way or another.
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
A hard time you've just pretty much humiliated him, course the guy can write an alias. I don't know about anyone else but that was just damn right rude especially as its coming from you Ricky.
The guy has wrote a couple of dialogs, and you go and say something like that after not knowing how to write a dialog yourself and everything else you come out with is the dogs <enter some comment here> how does it feel being in the spotlight Ricky?
|
|
|
|
Joined: Feb 2005
Posts: 194
Vogon poet
|
Vogon poet
Joined: Feb 2005
Posts: 194 |
:tongue: Hey guys, don't worry about it. I was really tired and my post may have come across a bit serious. I wasnt doing that second code for ricky, i was doin it for me. lol. I just wanted to see if i could do it. Took me forever though. By the way, i'm working on a log for the whisper block. I'm trying to solve most of the bugs. I'm hoping to make it log those 3 lines before it closes, then alert the user things have been logged. Then, insted of having to open the .txt file to view the log, i'm going to try to make an alias that will play only the last 3 lines entered. However, if more than 1 people enter content in the log, i'll have to make some way to get around that. :tongue: -- play as an echo. I've never done it before, so i'm curious to see what i come up with.
"God sometimes puts us in the dark for us to see the light"
|
|
|
|
Joined: Nov 2004
Posts: 332
Fjord artisan
|
Fjord artisan
Joined: Nov 2004
Posts: 332 |
what is ediquette but a bunch of gestures we dont mean
look he goes to my server he turned #mirc into a trivia room
I've written a few things for him and so has everyone else on here
and he would just popup it in and then if there was a problem hed have to run back to someone and find out what it is
because he didnt bother comprehending anything
and now hes writting things on his own
so youthink whatever you want but i am just giving him a hard time and i am proud of him for doing things alot faster than i could do them
obiviously its hard to convey a particular emotion through type (you can just about forget sarcasm)
anyways if i offended Inevitable I'm sorry all in jest and keep up the good work
p.s. this should be a closed thread id hate to see this turn into an arguement and even more to have to dig up the logs of him saying he doesnt know how to write an alias.
Last edited by ricky_knuckles; 06/03/05 07:03 PM.
The Kodokan will move you, one way or another.
|
|
|
|
Joined: Feb 2005
Posts: 194
Vogon poet
|
Vogon poet
Joined: Feb 2005
Posts: 194 |
By the way, I didnt turn #mIRC into a trivia room. I downloaded it and tested it for 2 days. I haven't had the trivia turned on for more than a week now.
"God sometimes puts us in the dark for us to see the light"
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
did you just punctuate a sentence with ?. in any case no in fact i dont use anything i havent written Thats just sad, nothing to reply with so you looked at my punctuation, its just mildly less than hitting at someone spelling. Oh and yes I had gathered you never use anything but what you have written yourself, your coding demonstrates it quite often. (Now thats a snakie reply and i didnt have to mention typos or punctuation.)
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
* Andy takes a good look at Ricky and sighs...
Jealousy is one of the strongest and dangerous emotions that one can face.
|
|
|
|
Joined: Jun 2003
Posts: 5,024
Hoopy frood
|
Hoopy frood
Joined: Jun 2003
Posts: 5,024 |
this should be a closed thread I agree. Regards,
Mentality/Chris
|
|
|
|
|