Skip to content
General IRCd

Ban List

A TG007 community discussion started by Bloodyboss.

Discussion 6 posts
Page 1 of 1
Open
Topic #14592 · 6 published posts · 2,070 views

Hey , I wanna a code for ircd using mic client like that was in msn if u typed a command for ur script !access it sends messages to channel [ ban list , except list , Invite list ] and command !cb to clear all bans and !ce t clear except list and !ci to clear invite list

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.

I mean normal IRCD server like Koach

Oh ok. Koach uses Chanserv I believe. err0r has already written scripts for Koaches.

I can't find them

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

Edited Sep 2, 2010 5:43 AM by err0r

Get information about ircWx here