Guest User

Untitled

a guest
Sep 21st, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.71 KB | None | 0 0
  1. on 1:INPUT:#Goultarminator: {
  2.   if $left($1,1) == ! {
  3.   }
  4.   else if $left($1,1) == / {
  5.   }
  6.   else {
  7.     set -u0 %msg $strip($1-)
  8.  
  9.     $regex(%msg,/((?:http:\/\/|www)[^[:blank:]]*)/g)
  10.  
  11.     set -u0 %i 1
  12.     :boucle
  13.     if %i > $regml(0)  {
  14.       goto finboucle
  15.     }
  16.     %msg = $replace(%msg,$regml(%i),12 $+ $regml(%i) $+  $+ %color.set2)
  17.     inc %i
  18.     goto boucle
  19.     :finboucle
  20.  
  21.     if $regex(%msg,((?:http:\/\/|www)[^[:blank:]]*)$) > 0 {
  22.       %msg = $replace(%msg,$regml(1),12 $+ $regml(1))
  23.     }  
  24.  
  25.     if $regex($1,^http) > 0 {
  26.       msg $chan %msg
  27.     }
  28.     else {
  29.       msg $chan 6 $+ $upper($left($1,1)) $+ 13 $+ $right(%msg,$calc($len(%msg) - 1)) $+
  30.     }
  31.     halt def
  32.   }
  33. }
Add Comment
Please, Sign In to add comment