Advertising

By WacKy- on Apr 02, 2005

Bit of a lame script but i was bored, took me 10 minst o make, havnt teted cos it looks ok, but if u find any bugs post below :)
right click in channel > anti adver > on/off to turn it on or off, it turns on abd off for certain channels!

menu channel {
  Anti-Adv
  .On:/writeini advertise.ini $chan Advertise ON | echo -a Anti Advertising Is Now Enabled For $chan
  .Off:/writeini advertise.ini $chan Advertise OFF | echo -a Anti Advertising Is Now Disabled For $chan
}

on 1:TEXT:*:#:{
  if ($readini(advertise.ini,$chanAdvertise != ON)) { halt
  }
  elseif ($me !isop $chan) { halt
  }
  elseif (!$readini(advertiseing.ini,$chan,$wildsite)) { 
    writeini advertiseing.ini $chan $wildsite 1 
    msg $chan [- $nick $+ : Violation [1]: Next [Kick] -] 
    halt 
  } 
  elseif ($readini(advertiseing.ini,$chan,$wildsite) == 1) { 
    writeini advertiseing.ini $chan $wildsite 2 
    kick $chan $nick [- $nick $+ : Violation [2][Kick]: Next [Ban-10] -] 
    halt 
  } 
  elseif ($readini(advertiseing.ini,$chan,$wildsite) == 2) { 
    writeini advertiseing.ini $chan $wildsite 3 
    ban -ku600 $chan $nick [- $nick $+ : Violation [3][Kick][Ban-10]: Next [Ban-30] -] 
    halt 
  } 
  elseif ($readini(advertiseing.ini,$chan,$wildsite) == 3) { 
    writeini advertiseing.ini $chan $wildsite 4 
    ban -ku1800 $chan $nick [- $nick $+ : Violation [4][Kick][Ban-10][Ban-30]: Next [Ban-60] -]  
    halt 
  } 
  elseif ($readini(advertiseing.ini,$chan,$wildsite) == 4) { 
    writeini advertiseing.ini $chan $wildsite 5 
    ban -ku3600 $chan $nick [- $nick $+ : Violation [5][Kick][Ban-10][Ban-30][Ban-60]: Next [Ban-Perm] -]  
    halt 
  } 
  elseif ($readini(advertiseing.ini,$chan,$wildsite) == 5) { 
    ban -k $chan $nick [- $nick $+ : Violation [6][Kick][Ban-10][Ban-30][Ban-60][Ban-Perm: Next [0] -]
  } 
}

Comments

Sign in to comment.
xDaeMoN   -  Apr 03, 2005

Doesn\'t look like it. \"$readini(advertise.ini,$chanAdvertise != ON)\" should be \"$readini(advertise.ini,$chan,Advertise) != ON\"

 Respond  
WacKy-   -  Apr 03, 2005

UPDATED

 Respond  
splatted   -  Apr 03, 2005

I have to agree with xDaeMoN. No point posting if you haven\'t tested it. BTW, the line \"elseif (!$readini(advertiseing.ini,$chan,$wildsite)){\" needs a space between the ) and the {

 Respond  
xDaeMoN   -  Apr 02, 2005

\"havnt teted cos it looks ok\"<- Didn\'t you read before posting a snippet to TEST IT FIRST.

 Respond  
DarthReven   -  Apr 02, 2005

$readini(advertise.ini,$chan != ON) <- that won\'t work

 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.