URL color/underline

By voops on Dec 04, 2013

So I found this remote script online. It's used to underline URL's and change their color to blue. Now, the underlining portion works just fine, but the color seems to have an issue. It's most likely and error on my end, but when someone posts a URL it not only remains black (the default text color) but turns their nick black as well (they're not currently set to black). I'm sure there's some setting I changed in the client that causes this because it seemed to work fine for everyone else who commented on it. But, can someone take a look at it anyways? Or, if you know what I might have to change in my client settings, please let me know. Thanks.

on ^*:TEXT:*:#:{
  set -u %tmp.match /((?:(?:(?:http|ftp|gopher)\72\/\/)|(?:www|ftp)\.)\S+)/Sig
  if ($regex(links, $1-, %tmp.match) > 0) {
    set -u %tmp.text $regsubex(links, $1-, %tmp.match, $chr(31) $+ $chr(3) $+ 12 $+ \t $+ $chr(3) $+ $chr(31))
    //echo -bfmtlr $chan < $+ $nick $+ > %tmp.text
    halt
  }
}

Comments

Sign in to comment.
^WeSt   -  Feb 08, 2014

working but make it to work with more links into one text.

e.g: /msg #chan visit us on www.google.com or on www.youtube.com

make it work with both!

voops  -  Feb 08, 2014

Ya I actually fixed this a while back. I'll post what im currently using later today when im back

Sign in to comment

voops   -  Dec 04, 2013

This is what it currently looks like in chat.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.