Guest Lynx Posted August 2, 2007 Report Share Posted August 2, 2007 ok I was given this code to stop peeps darting in and out of my chat room wiv out saying a word and it works fine .. my question is, that it puts them in deny in the access dialog and I have to clear denies as it seems to be an Indefinite ban ... can anyone help me and change the time limit on the ban .. also as many of you know Im not a scripter but trying to learn .. and I havent got a clue wot the ban limit is ... one more question lolol if someone is banned with a limit e.g. say 15mins and that time is up will it still show in the access dialog and will I have to clear it.. sz if I dont ask these questions how am I going to learn on *:JOIN:#: { if ($nick($chan,$me,ohaq)) { .auser joinchan $nick set %j. $+ $chan $chan .timer 1 3 .ruser $nick set %join. $+ $nick $calc(%join. [ $+ [ $nick ] ]) .timer 1 60 unset %join. [ $+ [ $nick ] ] } } on joinchan:PART:#: { if ($nick($chan,$me,ohaq)) { if (%j. [ $+ [ $chan ] ]) { mode $chan +bb $address($nick,2) $nick .ruser $nick unset %chantime msg $chan auto-bannned $nick for Join/Part in under three seconds Link to comment Share on other sites More sharing options...
Chief Posted August 2, 2007 Report Share Posted August 2, 2007 (edited) you could maybe use the /ban command instead with a -uSECONDS switch so it works abit like a auto-expiring var, like um : /ban -u300 # $address($nick,2) that should make the script automaticaly delete the ban in 5 mins. And good luck with a room were you ban ppl for poping in and then back out too fast .. ppl are nosey many will pop in an out a few times before you even get them to talk:) but as they say different horses for different courses ... Edited August 2, 2007 by Chief Link to comment Share on other sites More sharing options...
Guest Lynx Posted August 2, 2007 Report Share Posted August 2, 2007 (edited) And good luck with a room were you ban ppl for poping in and then back out too fast .. ppl are nosey many will pop in an out a few times before you even get them to talk:) but as they say different horses for different courses I dont want to ban them for EVER lol just to let them know its not polite to dart in and out of rooms wiv out saying something to the best host in chat lol I know what your saying but lol im old school and in my eyes and a few other chat rooms have sed the same it takes nothing to say a Hi and a Goodbye The other thing I would like to say Chief is thankyou for your reply and your help .. now plz mate where do I put that code you gave me Edited August 2, 2007 by Lynx Link to comment Share on other sites More sharing options...
Chief Posted August 2, 2007 Report Share Posted August 2, 2007 where do I put that code you gave me mode $chan +bb $address($nick,2) $nick <-- replace this /ban -u300 # $address($nick,2) <-- with this Link to comment Share on other sites More sharing options...
general Posted August 2, 2007 Report Share Posted August 2, 2007 mode $chan +bb $address($nick,2) $nick This code will ban user from channel...and user cannot join the room unless u clear access. 2nd ban wont show in access dialog although u have cleared it. im using same code in revenge protection ..n i have to clear access to remove ban for kicked person. but if u want set any time limit here goes your required ban... /access $chan add deny $nick 15 | /access $chan add deny $address($nick,1) 15 | /kick # $nick | /msg $chan auto-bannned $nick for Join/Part in under three seconds This will ban user for 15 minuts ...u can just increas ban time limit, As u say... where do I put that code you gave me If you still dont understand how to use and where to post these code ,Just replace these code with the codes you already have ... on *:JOIN:#: { if ($nick($chan,$me,ohaq)) { .auser joinchan $nick set %j. $+ $chan $chan .timer 1 3 .ruser $nick set %join. $+ $nick $calc(%join. [ $+ [ $nick ] ]) .timer 1 60 unset %join. [ $+ [ $nick ] ] } } on joinchan:PART:#: { if ($nick($chan,$me,ohaq)) { if (%j. [ $+ [ $chan ] ]) { access $chan add deny $nick 15 | /access $chan add deny $address($nick,1) 15 | /kick # $nick .ruser $nick unset %chantime msg $chan auto-bannned $nick for Join/Part in under three seconds Link to comment Share on other sites More sharing options...
Guest Lynx Posted August 2, 2007 Report Share Posted August 2, 2007 general Thankyou very much iv tested it and it works a treat .. iv also put just a five min ban on the $nick .. thanks again Link to comment Share on other sites More sharing options...
general Posted August 2, 2007 Report Share Posted August 2, 2007 My pleasure.... although it works ...but by mistake i added an extra line in it which has no function ....i thought u need code for banning such user who do not talk in room lolz... Lemme remove kick code you only need to add deny access for user who left room without typing any word..... on *:JOIN:#: { if ($nick($chan,$me,ohaq)) { .auser joinchan $nick set %j. $+ $chan $chan .timer 1 3 .ruser $nick set %join. $+ $nick $calc(%join. [ $+ [ $nick ] ]) .timer 1 60 unset %join. [ $+ [ $nick ] ] } } on joinchan:PART:#: { if ($nick($chan,$me,ohaq)) { if (%j. [ $+ [ $chan ] ]) { access $chan add deny $nick 15 | /access $chan add deny $address($nick,1) 15 .ruser $nick unset %chantime msg $chan auto-bannned $nick for Join/Part in under three seconds Link to comment Share on other sites More sharing options...
Guest Lynx Posted August 2, 2007 Report Share Posted August 2, 2007 general .. I must be getting better .. I spotted that and took it out .. thanks again Link to comment Share on other sites More sharing options...
Chief Posted August 2, 2007 Report Share Posted August 2, 2007 (edited) Hmm .. you were using mode bans not /access if i knew your chat had both i would have just suggested /access mode +b is usualy ircd and they dont have /access unless specificaly modded in. .. well now you have two ways! Edited August 2, 2007 by Chief Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted August 2, 2007 Report Share Posted August 2, 2007 Mode b is pure IRCx as well. VSIXc has both. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now