Skip to content
Buzzen Chat Network

Simple Guest Join Msg And/or Ban

A TG007 community discussion started by err0r.

Discussion 3 posts
Page 1 of 1
Open
Topic #12896 · 3 published posts · 1,880 views

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.

Get information about ircWx here

on ^*:JOIN:#: {

Why the ^ event prefix, and if it's used, where is the /haltdef?

 

 

 

 

 

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.
Edited Jun 3, 2009 1:50 AM by err0r

Get information about ircWx here