mIRC Home    About    Download    Register    News    Help

Print Thread
#264812 13/01/19 07:43 PM
Joined: Jan 2019
Posts: 1
A
asmokki Offline OP
Mostly harmless
OP Offline
Mostly harmless
A
Joined: Jan 2019
Posts: 1
hi...
id like to aquire a script that adds
<<<thing to put here

example:
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

Last edited by asmokki; 13/01/19 07:47 PM. Reason: added details
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
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.


Link Copied to Clipboard