Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. ;URL highlighting for channels
  2. on ^*:TEXT:*:#:{
  3. set -u %tmp.match /((?:(?:(?:http|ftp|gopher)\72\/\/)|(?:www|ftp)\.)\S+)/Sig
  4. if ($regex(links, $1-, %tmp.match) > 0) {
  5. set -u %tmp.text $regsubex(links, $1-, %tmp.match, $chr(31) $+ $chr(3) $+ 12 $+ \t $+ $chr(3) $+ $chr(31))
  6. //echo -bfmtlr $chan < $+ $nick $+ > %tmp.text
  7. halt
  8. }
  9. }
  10.  
  11. ;URL highlighting for queries
  12. on ^*:TEXT:*:?:{
  13. set -u %tmp.match /((?:(?:(?:http|ftp|gopher)\72\/\/)|(?:www|ftp)\.)\S+)/Sig
  14. if ($regex(links, $1-, %tmp.match) > 0) {
  15. set -u %tmp.text $regsubex(links, $1-, %tmp.match, $chr(31) $+ $chr(3) $+ 12 $+ \t $+ $chr(3) $+ $chr(31))
  16. //echo -bfmtlr $nick < $+ $nick $+ > %tmp.text
  17. halt
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement