Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on 1:INPUT:#Goultarminator: {
- if $left($1,1) == ! {
- }
- else if $left($1,1) == / {
- }
- else {
- set -u0 %msg $strip($1-)
- $regex(%msg,/((?:http:\/\/|www)[^[:blank:]]*)/g)
- set -u0 %i 1
- :boucle
- if %i > $regml(0) {
- goto finboucle
- }
- %msg = $replace(%msg,$regml(%i),12 $+ $regml(%i) $+ $+ %color.set2)
- inc %i
- goto boucle
- :finboucle
- if $regex(%msg,((?:http:\/\/|www)[^[:blank:]]*)$) > 0 {
- %msg = $replace(%msg,$regml(1),12 $+ $regml(1))
- }
- if $regex($1,^http) > 0 {
- msg $chan %msg
- }
- else {
- msg $chan 6 $+ $upper($left($1,1)) $+ 13 $+ $right(%msg,$calc($len(%msg) - 1)) $+
- }
- halt def
- }
- }
Add Comment
Please, Sign In to add comment