mIRC Homepage
Posted By: _SunShine_ Away Flood Protection.. - 24/07/03 05:51 PM
ok, I have an away flood protection, but it's only set to ban someone for flooding for 5 minutes. how do I set it to ban longer? like..24 hours or something. cause in mine and my friends room people come in there and try to flood all the time.

#away on
raw 821:*: { if (%flood. [ $+ [ $unaway ] ] == $null) {
set -u5 %flood. [ $+ [ $unaway ] ] 1
return }
else { inc %flood. [ $+ [ $unaway ] ] }
if (%flood. [ $+ [ $unaway ] ] > 2 && %flood.check == $null) {
set -u5 %flood.check 1
access $comchan($nick,1) add deny $address($nick,1) 5 unawayflood
kick $comchan($nick,1) $nick unaway flood detected :-s [ban set 5 min] }
}
raw 822:*: { if (%flood. [ $+ [ $away ] ] == $null) {
set -u5 %flood. [ $+ [ $away ] ] 1
return }
else { inc %flood. [ $+ [ $away ] ] }
if (%flood. [ $+ [ $away ] ] > 3 && %flood.check == $null) {
set -u5 %flood.check 1
access $comchan($nick,1) add deny $address($nick,6) 5 awayflood
kick $comchan($nick,1) $nick away flood detected :-s [ban set 5 min] }
}
#away end
Posted By: codemastr Re: Away Flood Protection.. - 24/07/03 05:53 PM
Umm raw 821 and 822 have nothing to do with /away, and also there is no /access command in IRC.
Posted By: _SunShine_ Re: Away Flood Protection.. - 24/07/03 05:55 PM
well i got this code from a friend and it works on my chat room..can you tell me a script for that then? that will ban for 24 hours?
Posted By: codemastr Re: Away Flood Protection.. - 24/07/03 05:56 PM
Well based on some Google searching I just did, it looks like you're using MSN. MSN does NOT allow mIRC, and it is the policy on this board not to help people to break MSN's rules.
Posted By: _SunShine_ Re: Away Flood Protection.. - 24/07/03 06:01 PM
no, im not using msn, i havent actually tried it..but what i meant was the friend that i got it from gave me that code..he uses msn though i think..but i dont..he told me that it worked cause he tried it out..so all i was wanting to know was is there a way to get an away flood protection to ban 24 hours?
Posted By: codemastr Re: Away Flood Protection.. - 24/07/03 06:03 PM
Well not really. IRC has no "/access" command like MSN does. If you set a ban, and you want it to be removed after 24 hours, you have to be in the channel when the 24 hours ends so that _you_ can remove the ban. But anyway, as I said, thats the least of your problems. None of that script will work on a non-MSN server simply because there is no such thing as numerics 821 and 822. IRC does NOT notify you of when someone [un]sets away.
Posted By: _SunShine_ Re: Away Flood Protection.. - 24/07/03 06:27 PM
ok well i dont know much about scripting ...so i didnt mean to post anything that wasnt aloud..i thought it was. sorry. frown
Posted By: feud Re: Away Flood Protection.. - 24/07/03 06:44 PM
don't let codemastr get you down. it's not that what you're asking for isn't "allowed", it's that it isn't possible/feasible (unless you are in your channel 24/7 and you are continually checking who is away).

edit: basically, it is possible to do something like this, but imo, it would be far more trouble than it would be worth.
Posted By: codemastr Re: Away Flood Protection.. - 24/07/03 06:53 PM
I wasn't putting anyone down. I pointed out that those commands are MSN commands, and that mIRC is not allowed on MSN. Once he said that he isn't using MSN, then I simply told him that what he is doing isn't possible. And it's more than just because you have to be connected 24/7, it's because, as I said, you are not notified when someone sets away or unaway.
Posted By: bloupx Re: Away Flood Protection.. - 24/07/03 07:19 PM
on msn you are notified however.
Posted By: codemastr Re: Away Flood Protection.. - 24/07/03 08:52 PM
Yes I know, but then that does go back to the "not allowed" thing since mIRC is not allowed on MSN, and from what I've seen here, it is the policy not to help people who are using mIRC on MSN.
Posted By: Watchdog Re: Away Flood Protection.. - 25/07/03 04:54 AM
Where did you get the script from and what network do you use? The answers to these will be able to confirm whether the script will be useful or not.
Posted By: bloupx Re: Away Flood Protection.. - 25/07/03 12:47 PM
we know it's not allowed, nor was i helping. The Moderators should just delete such posts heh.
Posted By: feud Re: Away Flood Protection.. - 25/07/03 02:08 PM
where he got it: "well i got this code from a friend"
what network: "no, im not using msn, ..."

as codemastr pointed out, raws 821 and 822 do not have to do with /away and thus are not useful if he's not using msn.
Posted By: Watchdog Re: Away Flood Protection.. - 25/07/03 02:34 PM
what network: "no, im not using msn, ..."

That says what he wasn't using, not what he was using. You all assume too much. Also codemastr did not say that 821 and 822 do not relate to /away (the fact of which I am already well aware), he said there is "no such thing as 821 and 822". This could be right or wrong depending on the server. Just a reminder on one thing: contrary to popular belief, MSN is not the only place you will find IRCX style commands. With extra functionality will come extra numerics.
Posted By: feud Re: Away Flood Protection.. - 25/07/03 02:41 PM
codemastr did not say that 821 and 822 do not relate to /away

read the second post in this thread.

additionally, if there is a network that uses 821 or 822 for away functionality, then thats news to me.
Posted By: pheonix Re: Away Flood Protection.. - 26/07/03 05:50 PM
apparently you didnt do enough google searching considering ircX allows /access and /prop just like msn.
it also allows you to see who is/isnt away.
Posted By: pheonix Re: Away Flood Protection.. - 26/07/03 05:51 PM
#away on
raw 821:*: { if (%flood. [ $+ [ $unaway ] ] == $null) {
set -u5 %flood. [ $+ [ $unaway ] ] 1
return }
else { inc %flood. [ $+ [ $unaway ] ] }
if (%flood. [ $+ [ $unaway ] ] > 2 && %flood.check == $null) {
set -u5 %flood.check 1
access $comchan($nick,1) add deny $address($nick,1) 1520 unawayflood
kick $comchan($nick,1) $nick unaway flood detected :-s [ban set 5 min] }
}
raw 822:*: { if (%flood. [ $+ [ $away ] ] == $null) {
set -u5 %flood. [ $+ [ $away ] ] 1
return }
else { inc %flood. [ $+ [ $away ] ] }
if (%flood. [ $+ [ $away ] ] > 3 && %flood.check == $null) {
set -u5 %flood.check 1
access $comchan($nick,1) add deny $address($nick,6) 1520 awayflood
kick $comchan($nick,1) $nick away flood detected :-s [ban set 5 min] }
}
#away end
© mIRC Discussion Forums