Consider this my 2 cents in a solution or workaround. :P
To detect tokens that start with your nick and any characters following: Eg. SunnyD! or SunnyDD -- I realize it has its weaknesses but for people who don't understand $regex() like some do, it can serve as a sufficient substitute.
Code
or to detect any token that matches your current nick. EG. SunnyD
Code
Alas this version works the same as any other token identifier.
Lol I like BigSteves translator, it just translates the whole page lol. While it's all fine and dandy to post a snippet in Spanish, it would be mucho aprecia if your comments at the least were in english, or accompanied by a translation.
He means you can re-construct it to reduce redundancy. instead of:
Code
It could be:
Code
So it evaluates as if the window isn't present then it creates one AND writes the highlight into the window, OR it just writes to the specified window. Also if it piques your curiosity you could script in multi-server support. A highlight window for each server instead of sifting through one large window.
No worries I got grilled on the same thing when I posted a similar snippet. Suggestions helped me a lot.
Not so much bitching rather than asking a question, and the reason it doesn't work is because the $calc() identifier is being hugged by foreign code. If your going to be a smart ass then do yourself a favor and /LOGOUT.
You could probably eliminate all variable's since they don't carry over into completely separate snippets. As far as it looks, it seems as if your setting the variables and then using them where the initial identifier would have been suffice.
Should probably credit if what he says is true ^^^^^^ Lol.
As for "registering" it would probably be more beneficial and organized to have used text files instead of using %drink.reg [ $+ [ $nick ] ]. For more reasons than I really care to explain at 2 in the morning.
While I do agree that it is a great place to come together and discuss mSL & other languages, its participants in such conversations are basically flamed for making incorrect statements or posting something that is seemingly inferior to others, and/or asking obvious questions. It is still in most peoples best interest to use /help rather than joining your channel for assistance as you will make much more progress. You can also thank xmrfunny1x for 90% of the stereotypes towards your channel from much of swift.
Jaytea, I haven't been there in quite some time, but all staff whom replied to my questions were arrogant. I've been on Swiftirc longer than to jump to irrational conclusions. I'm speaking out of personal experience; #mSL ops, halfops, and voices alike are power drunk dumbasses lol... Only people of help there would be fellow questioners, and I can assure you I'm not the only one who feels this way.
Dont believe I mentioned anything about useful rather than expanding your mSL base by using different techniques lol. As for being accused of ripping/stealing, its horribly obvious if its been ripped. Such as inconsistent coding habits with the rest of their snippets, etc..
A small tip, try and challenge yourself with submitted snippets. Use different strategies and techniques to achieve your desired result. If there's one thing I've noticed from your snippets, it's that they're all at the same level, nothing is really raising the bar.
Haven't really tested this but for someone who has, does it test ShortUrl, TinyUrl etc links? Seems to be a more popular way to spread links amongst the server I'm on.
EDIT: Oh XD I see its a facts socket not a quote lol. 9:00 AM at its best aye? Lol