ah well i found out i was getting the nt error because i did not add your alias to the actual script was trying to add it under the alias tab..
but i added to the script and placed the shrinklinks infront of the msg parts but i still cant seem to get it working
here is what i have done
http://pastebin.com/1sHMhpKe
It looks fine. I just updated the code to what I'm using. Please try that and let me know : http://www.hawkee.com/snippet/7005/
@fungi This alias is designed to be placed in the script you want to use it in, so it's a local alias.
If you want to call the alias from outside the snippet, just change line 2 from :
alias -l shrinklinks {
To:
alias shrinklinks {
FordLawnMower,
I tried almost a dozen variations, loading it in remote, aliases, restarting mIRC and trying the code suggestions. Maybe I'm not using it right: I copied the code above, removed " -l" on line 2 and typed "/shrinklinks http://www.google.com" in the channel I was in. It still didn't return a tinyurl. Is this script indeed supposed to shorten urls while in chat, or was it maybe designed for other purposes and I'm just understanding/using it wrong?
@fungi You're not following the instructions.
Lets say the message line is this.
msg #channelname Here is your crazy link - %crazylink
You would just change this to
ShrinkLinks msg #channelname Here is your crazy link - %crazylink
You have to send the ShrinkLinks alias output information in the first two tokens.
This is made to use inside a script , but it is possible to use this in normal chat.
Example:
//shrinklinks msg # Check out this link http://www.google.com
Both slashes are needed for this to work //shrinklinks , not /shrinklinks.
You could also add a alias to the end of the script.
Just hit ctrl+end to get to the bottom of the script.
Press [enter] to add a new line.
And paste in this alias.
alias tinysend { shrinklinks msg # $$1- }
Then just save the script.
You will now be able to type /tinysend message containing links here.
If you still need help , come to irc.geekshed.net #Script-Help
@fungi This snippet was actually broken. It's updated and working again.
pastebin the code for me, as it is now and I will look at it.