Jump to content

Simple Guest Join Msg And/or Ban


err0r

Recommended Posts

A very simple buzzen guest kick using GuestGate as the trigger.

Remove the access add deny and kick to just tell them to register.

 

Simply coded for learning purposes. No credit is required for the use of this snippet as it is very generic code. It includes a very simple flood protection.

 

on ^*:JOIN:#: { 
  if (%gflood > 4) halt
  if ($nick != $me) && ($me isop $chan) && (GuestGate isin $address($nick,1)) {
    inc -u2 %gflood
    /msg $chan $nick Please register your nick at http://www.buzzen.com/passport/reg.php
    access $chan add deny $address($nick,1) 15 : guest ban by $me
    kick $chan $nick Please register your nickname
  }
}

 

Feel free to refine the code or post your own examples.

Link to comment
Share on other sites

i use ^* out of habit. as for the haltdef i would include the above command inside an already established on join event to save from having tons of files with on joins. So i left it out. I figured if i put it in some ppl would start wondering where their onjoin went if they didn't have one set. Either way it shouldn't affect the effectiveness of the snippet

 

The ^ events don't replace your existing events; your normal events are independent and are still processed whether there is a ^ event in a script or not.
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...