mIRC Home    About    Download    Register    News    Help

Print Thread
#134610 03/11/05 12:10 AM
D
dnbull
dnbull
D
Hello, I want a script that when people join they get automatic ban, i'm doing this for a reason.

If chanserv can do this can anyone tell me how?

L
le_soap
le_soap
L
type !addban *!*@hostname

- le soap

Last edited by le_soap; 03/11/05 12:13 AM.
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
le_soap:

Please note, not everyone will have the ability to type "!addban" to add addresses to the ban list.

dnbull:

To stop users joining the channel here's how you can put a ban on everyone.

/mode #channel +b *!*@*

Or when they join..

Code:
On @*:Join:#channel: {
  ban $chan $nick 2
}


Add the -k switch if you want to kick also..

**Note: /chanserv help will also list help whether it supports Ban Management or Akick.

-Andy

D
dnbull
dnbull
D
What about making it not banning USERS like if its a op.

Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Code:
On @*:Join:#channel: {
  .timer 1 [color:blue]3[/color] if $nick !isop $chan ban $chan $nick 2
}


That gives them 3 seconds, if they aren't opped they get banned.

-Andy

D
dnbull
dnbull
D
Timer doesn't work I believe is there something wrong ?

Thanks for the help so far though.

EDIT: how can I make it for chanserv to do it as well ?

Last edited by dnbull; 03/11/05 12:58 AM.
B
BeYonD_Me
BeYonD_Me
B
Quote:
EDIT: how can I make it for chanserv to do it as well ?

If your irc network supports AKick List, you can add nick or mask to the list and when users previously added attempt to join your channel, chanserv will ban and kick them.


Link Copied to Clipboard