Hi,
So basically I have a function here to check for this regex (searching for image links).
if ($regex($1-, /(https?:\/\/.*\.(?:png|jpg))/i)) {
var %s = link_ $+ $ticks $+ $rand(1,1000000)
if ($sock(%s)) { sockclose %s }
sockopen %s hkbot.io 80
sockmark %s $nick $chan $1
}
On this line
sockmark %s $nick $chan $1
I want to have the link URL found so that it would be
sockmark %s $nick $chan %linkfound
If anyone could give some insight on how this would be possible, that would be awesome. Thanks