Skip to content
General IRCX

Members only room

A TG007 community discussion started by maria.

Discussion 8 posts
Page 1 of 1
Open
Topic #594 · 8 published posts · 1,972 views

kick if not member

 

Am trying to make it so if your not a member it kicks you and bans for like 50seconds

But halts if you type >member and adds your name to userlist as a member then leaves you alone without kicking

but not sure how to work that out

 

Thanks

 

on *:join:#Cafe-irc:{
 if ($nick == $me) halt 
 if (admin isin $level($address($nick,1))) halt
 if (member isin $level($address($nick,1))) halt
 /mode # +b $nick
 /amsg $nick Please Type !member to stay in this room as we are testing a new members system
 ./timer 1 10 kick # $nick You was told to do !member Please Come back in 5mins 
 ./timer 1 50 /mode # -b $nick
}

on*:text:*!member:#:{ amsg $nick you are a member | .auser member $nick }

 

^^ has to besomething like that lol

 

I reply to this msg within a year!

:) - I can't keep still :D

try this , i havnt tested it

 

on *:join:#Cafe-irc:{
if ($nick == $me) halt 
if (admin isin $level($address($nick,1))) halt
if (member isin $level($nick)) halt
/mode # +b $nick
/amsg $nick Please Type !member to stay in this room as we are testing a new members system
./timer $+ $nick 1 10 kick # $nick You was told to do !member Please Come back in 5mins 
./timer $+ $nick 1 50 /mode # -b $nick
}

on*:text:!member:#:{ 
.timer $+ $nick off 
/mode # -b $nick 
amsg $nick you are a member 
.auser member $nick 
}

My code does NOT have bugs. It just develops random features.

maria Has Joined The conversation.

<Cafe_IRC> maria Please Type !member to stay in this room as we are testing a new members system

Cafe_IRC adds deny maria!*@*

 

 

Thats all its doing atm no kick if member or not and is not adding to the user list in mIRC

I reply to this msg within a year!

:) - I can't keep still :D

Using the same timer twice will override the first one.

./timer $+ $nick $+ 1 1 10 kick # $nick You was told to do !member Please Come back in 5mins 
./timer $+ $nick $+ 2 1 50 /mode # -b $nick

 

And there was a blank missing in the on text statement:

on *:text:!member:#:{ 

 

Thank you Peter

all works

on *:join:#Cafe-irc:{
 if ($nick == $me) halt 
 if (admin isin $level($address($nick,1))) halt
 if (member isin $level($nick)) halt
 /amsg $nick Please Type !member to stay in this room as we are testing a new members system
 ./timer $+ $nick $+ 2 1 10 /mode # +b $nick
 ./timer $+ $nick $+ 1 1 20 kick # $nick You was told to do !member Please Come back in 5mins 
 ./timer $+ $nick $+ 3 1 50 /mode # -b $nick
}

on *:text:*!member:#:{  
 .timer $+ $nick off 
 /mode # -b $nick 
 amsg $nick you are a member 
 .auser member $nick 
 .timer $+ $nick $+ * off
}

Edited Jun 6, 2004 10:52 AM by maria

I reply to this msg within a year!

:) - I can't keep still :D

oops little mistake on timers lol

My code does NOT have bugs. It just develops random features.

lol .. ozzy --> bash.gif <-- Pete

LOL NICE MEMBER THING GOOD THINKING

 

 

 

 

-----------------

X-Chat Co-Owner

Server: X-chat.ircxpro.com