mIRC Home    About    Download    Register    News    Help

Topic Options
#264812 - 13/01/19 07:43 PM adding text after link
asmokki Offline
Mostly harmless

Registered: 13/01/19
Posts: 1
Loc: Fin
id like to aquire a script that adds
<<<thing to put here

http://www.linktosite.com <<<this may contain nuts

after any link that i add into chat

id do it myself but i suck badly in coding anything...
i would appreciate any help regarding this

thank you very many in advance

Edited by asmokki (13/01/19 07:47 PM)
Edit Reason: added details

#264813 - 13/01/19 08:43 PM Re: adding text after link [Re: asmokki]
maroon Offline
Hoopy frood

Registered: 12/01/04
Posts: 1141
just to be clear, are you talking about where you post just a link, and you want the embellishments added to it? or you mean you want something looking over your shoulder as you type, and every time you press <enter> it's supposed to inspect what you typed, looking for a url?

If it's the former, you can make an alias like

alias urlfix { if (#* iswm $active) msg $chan $1 <<<whatver>>> }

then you can just do:

/urlfix www.foobar.com

If it's the latter, that's a little more complicated, as it would need to parse your message for a url, and the definition for that can be ambiguous.