SRU

chacin boobs (SRU EDiT)

SRU
Apr 8th, 2013
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 4.55 KB | None | 0 0
  1. ;*****************************************************************************************************************************************************************************
  2. alias isurl { return $iif($regex($1-,/\b(?:(?:htt|ft)ps?://(?:www|ftp\.)?|www|ftp\.).*(?:\.[a-z]{2,4})(?::\d+)?(?:/\w+(?:/\w*/*)*|(?:\.[a-z]{2,4})|\?\S*)*\b/gi),$iif($prop,$regml($v1),URL)) }
  3. alias linkcheck { return $iif($read(Boobs.txt,nw,$+(*,$1-,*)) != $null,ADDED,NEW) }
  4. ;*****************************************************************************************************************************************************************************
  5. on *:TEXT:*:#: {
  6.   if ($timer($+(SPAM,$network,$chan))) { halt }
  7.   ;***************************************************************************************************************************************************************************
  8.   ;*** !List
  9.   if ($1 == !List) { msg # $lines(Boobs.txt) tits added }
  10.   ;***************************************************************************************************************************************************************************
  11.   ;*** Boobie section
  12.   elseif ($istok(!TiTs !BOOBs,$replace($1,@,!,.,!),32)) { var %num $iif($2 isnum 1 - $lines(Boobs.txt),$v1,$r(1,$lines(Boobs.txt)))
  13.     tokenize 32 $read(Boobs.txt,%num)
  14.     msg # $+([7BOOBiEs]-[15,%num,7/15,$lines(Boobs.txt),]) $+(2,$1,) [4NSFW] 5Added by: $3 $+($chr(40),15,$4-,,$chr(41))
  15.   }
  16.   ;***************************************************************************************************************************************************************************
  17.   ;*** Add boobs
  18.   elseif ($istok(!AddB !AddT !AddTit !AddTits !AddBoob !AddBoobs,$replace($1,@,!,.,!),32)) { set -u1 %Link $wildtok($1-,*http://*.*,1,32)
  19.     if ($isurl($1-) != URL) { .notice $nick You'll need to add a valid URL... }
  20.     elseif ($linkcheck($wildtok($1-,*http://*.*,1,32)) == ADDED) { .notice $nick Thanks for your submission... but $wildtok($1-,*http://*.*,1,32) has already been added }
  21.     else { write Boobs.txt $wildtok($1-,*http://*.*,1,32) [4NSFW] $nick $fulldate | tokenize 32 $read(Boobs.txt) | .msg # Thanks for your submission $+($3,...) I've added $+($chr(40),2,$1,,$chr(41)) to the DB 15ooO( $ord($lines(Boobs.txt)) link added 15) }
  22.   }
  23.   ;***************************************************************************************************************************************************************************
  24.   ;*** !BoobHelp
  25.   elseif ($1 == !bHelp) || ($1 == !BoobHelp) { .notice $nick commands are !add url, !boobs, !10boobs, !listboobs }
  26.   ;***************************************************************************************************************************************************************************
  27.   ;*** !10boobs
  28.   elseif (($1 == !rBoobs) || ($1 == !RandomBoobs)) && (!%BoobSPAM) {
  29.     if ($lines(boobs.txt) == 0) { msg # Sorry Mate... either the location is wrong or there hasn't been added any links | halt }
  30.     set -u60 %BoobSPAM | set -u1 %X $iif($2 isnum >= 10,$v1,10) | $iif($lines(boobs.txt) <= %X,set -u1 %X $lines(Boobs.txt)) | set -u1 %Y 1
  31.     while (%X) { $+(TimerBoobs,%X) 1 %Y msg # $read(Boobs.txt) | inc %Y 1 | dec %X }
  32.   }
  33.   ;***************************************************************************************************************************************************************************
  34.   ;*** !Last
  35.   elseif ($1 == !Last) {
  36.     if ($lines(boobs.txt) == 0) { msg # Sorry Mate... either the location is wrong or there hasn't been added any links | halt }
  37.     elseif ($lines(boobs.txt) <= 5) { .PLAY $+(-f,1) # boobs.txt }
  38.     else { var %X $calc($lines(boobs.txt) - $iif($lines(boobs.txt) <= $2,5,$iif($2 <= 10,$calc($v1 -1),5))) | .PLAY $+(-f,%X) # boobs.txt }
  39.   }
  40.   ;***************************************************************************************************************************************************************************
  41.   else { halt }
  42.   ;***************************************************************************************************************************************************************************
  43.   ;*** Flood protection ******************************************************************************************************************************************************
  44.   $iif(!$regex($nick($chan,$nick).pnick,/(!|~|&|@|%)/) && $nick != chachin,$+(.timer,SPAM,$network,$chan) 1 4 noop)
  45.   ;***************************************************************************************************************************************************************************
  46. }
Advertisement
Add Comment
Please, Sign In to add comment