Jump to content

Ban List


Bloodyboss

Recommended Posts

Is that using the /access command, Chanserv or /ban?

 

Basic text command looks like this.

 

 

on *:text:*!cb:#:access # clear

 

Of course you will want to set up user groups so only specified users can have access to this. Some sort of flood protect may be needed as well.

 

Myself and others can go over these details but first I wanted to make sure I had the right syntax for your server.

Link to comment
Share on other sites

to do this you would use a simple while loop through $ibl(channelname,N)

 

$ibl is internal ban list

$iel is internal exception list

$iil is internal invite list

 

here is a quick example using a master level

 

on Master:TEXT:!bl:#: {
msg # Checking Ban List
  var %a 1
  while ($ibl(#,%a)) {
    msg # $v1
    inc %a
  }
msg # $iif(!$ibl(#,1),No entries,End List)
}

you could include while loops for the others all in one or separately.. as for clearing the bans you would do the same thing only using mode # -b instead of msg #

 

This is only a very basic example of how to do it.

 

If for whatever reason you don't want to use the internal list you could use the raw return. when you do /mode <channel> +b with no entry it will return the list of bans through the raw 367

 

you could do the same for exception and invite if you wish using their perspective raw return info

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...