Here is a greeting message so when someone joins ur chan it says Whatever you want it to, im becoming a better scripter now because i figured out how 2 use timers :0
on !*:JOIN:#: {
.timer 1 4 msg $chan Welcome to codlive $nick
}
THIS WAS MADE BY REIDER45, PLEASE REMOVE THIS TEXT
lol @ reider45 deleting my comments anyways, like i said before think before you post a snippet. Put some thought into them instead of posting every event you learn how to do.
reider45 Wrote:
at least it all works
hmm not very good. what if 5 people join within 3 seconds? it will reset the timer to the last person that joined, so the other 4 would not get a message. also instead of messaging the channel maybe notice the user that joins cuz getting join messages in chan tends to get annoying.
Yes, I concur with you two about not posting nonsensical snippets. But looking on the bright side, at least this dude is trying and he feels the sense of achievement to post something that he's grasped.
Again, I'm not trying to be judgmental and argumentative here. It's just that I feel sometimes we need to pat each other on the back, for better or worse, to guide someone in the right direction in terms of snippet submissions.
In a gentle way, that is... :p
You didn't think of the consequences when a flood takes place. Someone malicious can join with multiple nicks, with multiple identities and hosts, to throw out the client that runs the code. Worse yet, you may get banned for sending so many timed messages. I realize I should have used $chan instead of $site. Then if I were you, I'd use 2 secs.
Perhaps you haven't experienced flood attacks yet, but when you do, you'll change your whole perspective when writing a code.
Simplicity is better indeed, but it's limited when dealing with certain scenarios.