raw knock:*913*: { if (!%kb.flood) { set -u10 %kb.flood $true | /amsg [ $nick Is Banned ]} }
raw knock:*471*: { if (!%kl.flood) { set -u10 %kl.flood $true | /amsg room isnt big enuff for $nick .. just wont fit :( } }
raw knock:*473*: { if (!%ki.flood) { set -u10 %ki.flood $true | /amsg $nick is knockin cause the room is Invite only } }
Hehe, pleased I spotted this topic. Having tested that, I noticed a flaw with our webchats inbuilt knock display:

Edited Jun 16, 2009 7:09 PM by oasiz
err0r
Subject Matter Expert Member #20,793
change it to this see if that helps
#knocks on
raw KNOCK:*: {
if ($2 == 913) && (!%kb.flood) { set -eu10 %kb.flood | /amsg [ $nick Is Banned ] }
if ($2 == 471) && (!%kl.flood) { set -eu10 %kl.flood | /amsg room isnt big enuff for $nick .. just wont fit :( }
if ($2 == 473) && (!%ki.flood) { set -eu10 %ki.flood | /amsg $nick is knockin cause the room is Invite only }
halt
}
#knocks end
been awhile since i've used knock but doesn't $1 echo back the room name.. so you could do away with amsg if you use the script in more than one room like
#knocks on
raw KNOCK:*: {
if ($2 == 913) && (!%kb.flood) { set -eu10 %kb.flood | /msg $1 [ $nick Is Banned ] }
if ($2 == 471) && (!%kl.flood) { set -eu10 %kl.flood | /msg $1 room isnt big enuff for $nick .. just wont fit :( }
if ($2 == 473) && (!%ki.flood) { set -eu10 %ki.flood | /msg $1 $nick is knockin cause the room is Invite only }
halt
}
#knocks end
Edited Jun 16, 2009 7:58 PM by err0r
Get information about ircWx here
JOhnson
I know not of what I speak Member #27,425
no sure what you are asking johnson... are you saying the flood protection isn't working?.. if so a better way maybe to simple turn off knocks for a set time once the flood triggers.
see im still learning as you can see err0r from the "Bold" in your quote that has helped me undertand the room knock flood ... what I did was I took one line out of that code that oasiz gave me and did what you can see in the code below and when I tested the code it worked and I tried to access the room with the test nick about 15 times and it showed in the room 3 times in all (omg I hope Im explaining myself right)
right first of all nais tuke to you err0r for helping me in the 1st place and 2nd oasiz for his help and all 
iv saved all codes to file and will play with them when iv got time and learn from them 
#knocks on
raw knock:*913*: { if (!%kb.flood) { set -u10 %kb.flood $true | /amsg [ $nick Is Try To "Access The Room" [ Banned ]
}
}
#knocks end

Edited Jun 16, 2009 8:54 PM by JOhnson
err0r
Subject Matter Expert Member #20,793
it has flood protection so the screen isn't flooded with <user> is banned over and over.. many ppl just try to rejoin after being banned on a timer so it would just flood out the chat as long as knocks are on. With what i gave u it will only msg once every 10 secs so the chat won't be flooded with requests
normally what i would do is just set it to something like every 3 secs and then after so many times i would have it set -u for a couple of minutes then have it auto +u again after that
Edited Jun 16, 2009 10:01 PM by err0r
Get information about ircWx here