N3M3S1S commented on a Page, Channel Access Command For Bots  -  Oct 06, 2010

Here this would make it more secure so that only current channel ops can add access. You also don't need the if (%access == on) more than once.

on @*:TEXT:!access*:#: {
  if (%access == on) {
    if ($2 == add) { 
      cs access $chan add $3 $4
      notice $chan $3 Is added to Level $4
    }
    elseif ($2 == del) { 
      cs access $chan del $3
      notice $chan $3 Deleted from Access list
    }
    elseif ($2 == list) { 
      cs access $chan list 
      set %anick $nick
    }
    else { halt }
  }
}
 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.