mIRC Home    About    Download    Register    News    Help

Print Thread
#134610 03/11/05 12:10 AM
Joined: Nov 2005
Posts: 3
D
dnbull Offline OP
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Nov 2005
Posts: 3
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?

Joined: Nov 2005
Posts: 1
L
Mostly harmless
Offline
Mostly harmless
L
Joined: Nov 2005
Posts: 1
type !addban *!*@hostname

- le soap

Last edited by le_soap; 03/11/05 12:13 AM.
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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

Joined: Nov 2005
Posts: 3
D
dnbull Offline OP
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Nov 2005
Posts: 3
What about making it not banning USERS like if its a op.

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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

Joined: Nov 2005
Posts: 3
D
dnbull Offline OP
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Nov 2005
Posts: 3
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.
Joined: Jun 2005
Posts: 9
B
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
B
Joined: Jun 2005
Posts: 9
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