|
Joined: Dec 2002
Posts: 397
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 397 |
umm ok for some reason i just decided to make a script to mass kick bots out of a channel beacuse we constantly get hit with them but the prob is it only kicks 1 bot and thats it O-o idk
alias mass_kick {
.set %masskick.count 0
.set %masskick.total $nick(#,0)
.set %masskick.me $nick(#, $me)
:loop
if (%masskick.count >= %masskick.total) { goto end }
k $snick(#,$snick(#,%masskick.count)) Mass Kick
inc %masskick.count 1
goto loop
:end
}
menu nicklist {
mass kick: { mass_kick }
}
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
We do not help with channel take-over scripts. Your code intends to kick everyone out, not just the bots. You can stop a botflood with a simple join-flood code that sets a mode +i on a channel.
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
Joined: Jun 2003
Posts: 242 |
alias mass_kick {
var %i = 1
while ($nick(#,%i) != $null) {
if (($nick(#,%i) == $me) || ($nick(#,%i) == %lastnick)) inc %i
else {
[color:green]ban -u10 # $+($nick(#,%i),!*@*)[/color]
kick # $nick(#,%i) Mass Kick
var %lastnick = $nick(#,%i)
}
}
}
menu nicklist,channel {
Mass Kick:mass_kick
}
Edit: Ok I'll add this ... ATMA, please don't use this for taking over channels.
Last edited by r0ck0; 14/09/03 03:35 PM.
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
Fjord artisan
Joined: Apr 2003
Posts: 300 |
locutusofborg said:
We do not help with channel take-over scripts. Your code intends to kick everyone out, not just the bots. You can stop a botflood with a simple join-flood code that sets a mode +i on a channel.
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
Joined: Jun 2003
Posts: 242 |
only thing I have to say about that is ... locutusofborg shouldn't use the word we in a denial of help statement.
Last edited by r0ck0; 14/09/03 03:16 PM.
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
Fjord artisan
Joined: Apr 2003
Posts: 300 |
well who would want to help a channel take over script? i know i wouldnt
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
Joined: Jun 2003
Posts: 242 |
well I just did [/high & mightiness]
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
1 problem: a mass kick can be used as a channel takeover, doesnt mean it is going to be for that....
new username: tidy_trax
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
Joined: Jun 2003
Posts: 242 |
tyvm pheonix .. exactly go add a comment here too will ya? thx
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
Fjord artisan
Joined: Apr 2003
Posts: 300 |
well im sure that alot of people agree with me about mass kick scripts EDIT* even what apears to be a harmless enough mass voice script can be turned into a mass deop
Last edited by andymps; 14/09/03 03:30 PM.
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
maybe he wants the mass kick simply because he doesnt want his room any more, maybe he wants it for the reason he said, maybe he wants it for channel takeovers, whatever the reason, you cant control him nor know what he needs it for..
new username: tidy_trax
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
To take it a step further, here you go...
; mode changes
; Usage: /massmode <chan> <mode>
; Example: /massmode #mychannel +o
/massmode {
var %chan = $$1, %nick = 1, %nicks
while ($nick(%chan, %nick)) {
var %nicks = $addtok(%nicks, $ifmatch, 32)
if ($numtok(%nicks, 32) == $modespl) || (%nick == $nick(%chan, 0)) {
/mode %chan $+($left($$2, 1),$str($right($$2, 1),$modespl)) %nicks
/unset %nicks
}
/inc %nick
}
}
Personally, if you dont like the idea of a take over (in all the seriousness you bing to it), try setting chanserv protections. ChanServ can limit modes like +b, where noone can eb banned. Also, you have user levels, use them. Set those who regular ur channel to protected. If your netowrk doesnt have services, write a script..
on !@*:BAN:#: {
/inc -u3 % [ $+ [ $chan ] $+ ] . [ $+ [ $nick ] ]
if (% [ $+ [ $chan ] $+ ] . [ $+ [ $nick ] ] > 4) /kick $chan $nick Takeover Detected
}
on !@*:KICK:#: {
/inc -u3 % [ $+ [ $chan ] $+ ] . [ $+ [ $nick ] ]
if (% [ $+ [ $chan ] $+ ] . [ $+ [ $nick ] ] > 4) /kick $chan $nick Takeover Detected
}
There, that allows only 4 mode changes per three seconds (including kicks). If they do more, they get the golden boot award... It simple people
-KingTomato
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
Fjord artisan
Joined: Apr 2003
Posts: 300 |
well thats why u dont help mass anything scripts
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
Joined: Jun 2003
Posts: 242 |
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
i can help with whatever i want.. if you dont help him he's only going to get it elsewhere, so ya might as well save him the trouble;\
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 397
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 397 |
its not a channel take over script -_- my server gets smashed by bots and stuff so me and my friend were trying to find a way to remove them quickly
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
All discussion about a war script aside for a sec...
Keep in mind that you can only kick a certain number of bots or people before you, yourself, get killed for flooding the server. Since bot attacks are unwelcome on just about every network maybe this is something you should discuss with an oper. Unless you are able to provide this bot of yours with an o:line (provides immunity against being flooded off) then it simply will not go the distance against a big attack, regardless of whether you use mIRC, an eggdrop or whatever.
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
I wouldn't have to if people would stop helping with lame take-over scripts. IRC is a place to have fun, not a place to annoy the hell out of someone and forcibly take what is not yours. I for one keep that in mind when I help people. I do not provide them with answers to code that can be used or mostly will be used in harmful ways, either to themselves, other users or a IRC network. I was hoping the serious IRC lovers would agree with me there. Guess some people just enjoy harassing others and helping people to harass others.
That said: mass commands generally serve no other purpose than to wreak havoc in a channel (just like "revenge" scripts, which 95% of the IRC population apparantly mistakes for "protection" scripts). His problem was with floodbots. That problem does NOT require you to kick all the users from the channel. Just the bots. You can simply set a +i on the channel to stop the flood.
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
maybe he doesnt want +i on :tongue:, if you meant only set +i when the bots flood-join, then maybe they dont flood-join and only join every so often, until there are loads and then the flooding starts.
new username: tidy_trax
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
Joined: Jun 2003
Posts: 242 |
I don't care to question why .. he needed help and I helped .. end of story.
|
|
|
|
Joined: Aug 2003
Posts: 148
Vogon poet
|
Vogon poet
Joined: Aug 2003
Posts: 148 |
i can back ATMA up on that.. i have join his server a couple times, and i see how bad these bots are
_________ may death strike you.
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
A good script can detect such. Also - your arguments hold no ground. If he detects the bots to start the masskick, he also detects them to set the +i. All that I suggest he change is the action he takes.
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
Well, then you are the kind of people who make IRC not fun for a lot of newbies. As they say, if you're not part of the solution, you're part of the problem...
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
That doesn't change the point of my reasoning. There is no need to kick ALL the users out of a channel. That will just scare away your userbase.
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: Aug 2003
Posts: 148
Vogon poet
|
Vogon poet
Joined: Aug 2003
Posts: 148 |
he is only kicking $snick's, not everyone, you should check over the script before running ur yapp. :tongue:
_________ may death strike you.
|
|
|
|
Joined: Dec 2002
Posts: 397
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 397 |
yes indeed you should look at the code more closely next time k? :tongue:
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
First, it doesn't change anything I said. In fact, if you wanna go down that path -- it makes it worse and supports my path even more. How much time do you think he's gonna need to manually select all the botnicks? Halfway decent spambot floods these days are bots joining and parting like crazy, maybe throwing in one or two lines of text between. Before you select the second nick, the first will be gone already. Manually selecting botnicks in a botflood is completely and totally pointless. Infact anything manual is completely and totally pointless against a flood. If you want to protect a channel, you MUST automate it.....
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
i never have trouble with that because i normally stick to small networks, other than dalnet every so often, but i would say a mass kick is far better than any kind of flood prot anyway;\
new username: tidy_trax
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
Masking the symptoms is NEVER better than solving the problem. You can keep kicking out the floodbots till hell freezes over, unless you do something to prevent them from joining back, and prevent others from joining as well, the flood is gonna keep going. Setting a temporary +i is the only way to stop them from rejoining (bans don't cut it, especially on networks where you can connect through proxies).
PS: "only way" is relative, on DALnet you can use +R to prevent floodbots from joining too.
PPS: don't take that "till hell freezes over" too literally -- it already did a few years ago.
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: Apr 2003
Posts: 426
Fjord artisan
|
Fjord artisan
Joined: Apr 2003
Posts: 426 |
Perhaps you might be wiser off letting the rest of this community decide whether we want to help this person or not.
If you think the question asked has the potential to be used in a malicious manner, don't respond. On the other hand, if you really have the need to say something, by all means, go ahead, but please don't bring the greater community into the battle, because we can make our own decisions.
Personally, I have a command similar to this, however, I've hardly used it. In fact, I'm thinking of re-coding it so it will only allow three or four events/mode changes to happen at once.
As for bans, I suggest using $modespl to return how many modes can be changed at once on your server, and modifying the script to suit.
-------- mIRC - fun for all the family (except grandma and grandpa)
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
Whether or not we should help here isn't the point I am trying to make. The point I am trying to make is that the code is useless when a half decent botflood shows up...
And excuse me for trying to do my part in making IRC a better place
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
And excuse me for trying to do my part in making IRC a better place not everyone wants the same as you.....
new username: tidy_trax
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
I using my mass kick to fast secure a channel (clear it out) if its being a TO atemt.. if somone get server ops and start to mass kick the ops, then i dont just want the channel to be set +i, that means that my ops cant join it without a invite, so a mass kick can be good for many reasons. but if its made to do a TO with, then its not that good, but as allways it depends on the person that using it, if you got a gun that dont mean you shot somone, but then again you have ppl that doing just that.. so a mass kick on its own arent so bad, it all depends on who using it and for what reason
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
if you got a gun that dont mean you shot somone exactly
new username: tidy_trax
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
Apparantly there are some people who want to do nothing but harass others/annoy others.
I said "a better place"
A better place is a place where every user can chat freely without being harassed by spammers, without being insulted by idiots, without being banned from their own channel by people who use warscripts. That is what "good" and "safe" and "normal" IRC is, regardless of whether you want it to be such.
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
In that case, why not simply deop everyone and set +i. You can then reop the real ops and kick the lamers.
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: Dec 2002
Posts: 397
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 397 |
Apparantly there are some people who want to do nothing but harass others/annoy others.
did i ever say i was going to harass ppl with this script no i didnt i am a owner of a server and i know what to do when to do it so just stfu ppl are getting sick of you [censored] saying [censored] like this it just floods the message boards k thx
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
Joined: Jun 2003
Posts: 242 |
You're saying I'm part of the problem because I choose to help people without the preaching ?
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
You shouldent say to somone here that just says what he/she thinks to "stfu", they are here to help ppl, and if they feel its wrong to help with serten things, then thats ok too, and LocutusofBorg do say much good in this forum, so i dont see any reason to be rude? that will only make it harder for you to get help with som other problem you maybe will have, no one here wants to help somone that are rude..
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
A better place is a place where every user can chat freely without being harassed by spammers, without being insulted by idiots, without being banned from their own channel by people who use warscripts. That is what "good" and "safe" and "normal" IRC is, regardless of whether you want it to be such.
I used to own a channel with a 100 ppl on avaerage there, and I never was taken over.. i'm sorry, but if a person's channel gets taken over that they own, its their own fault. If you couldnt do something as simple as /chanserv identify <chan> <pass> or /chanserv access <chan> add <name> <protected_level>, then you need to learn from your mistakes. Even just mkaing a 1 line script on 1:JOIN:#channel_i_own: /chanserv identify <chan> <pass> thats like having a car, leaving the key in the ignition, and being a distance away. Its your fault u didnt take the initiative to secure your car. Now dont get me wrong, the one who stole the car is still at fault, but your the one that basically handed it over.
-KingTomato
|
|
|
|
Joined: Dec 2002
Posts: 1,527
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,527 |
it is beyond me why ANY server owner would ever need a mass kick script in thier IRC ......that being said ... if the channel is yours and your the server netadmin ..... no one can touch you and your room...... so why would there ever be a need to have such a script?
D3m0nnet.com
|
|
|
|
Joined: Feb 2003
Posts: 3,432
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 3,432 |
if you arent a owner of the server then? hard to do a /kill if u dont have that status.
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
|
|
|
|
Joined: Dec 2002
Posts: 1,527
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,527 |
what relevance does /kill have to a mass kick script? please tell me where they are the same thing?..... any ircop can /kill ..... doesnt even have to be a server owner. if u dont know that much then u really shouldnt own a server
D3m0nnet.com
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
Joined: Jun 2003
Posts: 242 |
he said he was a server owner .. not the server owner.
|
|
|
|
Joined: Dec 2002
Posts: 1,527
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,527 |
ok a server owner and an ircop are two entirely different things, if hes not able to distinguish that then he really doesnt need to be either of the two.
D3m0nnet.com
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
Joined: Jun 2003
Posts: 242 |
No .. what I mean is, he never said he was oper on the server in question .. he only stated he was a server owner.
Even though it really isn't that hard of a job, some opers/admins for some reason just do not like to do what they're supposed to in those situations. I don't know why, but it seems like they just don't want to be bothered with it .. sad but true. I'm not saying this is the case in his situation because maybe it isn't, but it seems like most opers just want the social status of being an oper while not really wanting to do the job or don't know how.
Last edited by r0ck0; 15/09/03 05:45 PM.
|
|
|
|
Joined: Dec 2002
Posts: 1,527
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,527 |
well if he mentioned the /kill command it would be a safe bet he is infact an oper on his server that he owns... therefore everything u just took the time to post was nonsensical, furthermore what does any of this has to do with a mass kick command? why would he waste the time to tell us about /kill? basically my point is there is no such need for a server op on any network to ever have a mass script to kick anyone as even if thier room was taken over ... it would be short lived .. and in most cases the offenders would be also removed from the network....... never needing to ever utilize a mass kick. and anyone with any sense would have to agree with my point. I ran a small network with 3 links to it and if i ever caught any oper using a war script that oper was infact dismissed... it is unprofessional to have anyone like that representing a network.
D3m0nnet.com
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
Joined: Jun 2003
Posts: 242 |
Maybe the server he owns isn't on the network where he is having the problems. Maybe it is. I don't know why he mentioned that he owns a server. But you're right, I am a server owner on a small network and I wouldn't want any opers that use war scripts either .. been there. Have seen too many opers that will use /kill at the drop of a hat but seem to disappear when it comes to actually solving a problem such as floodbots and such.
Last edited by r0ck0; 15/09/03 06:46 PM.
|
|
|
|
Joined: Dec 2002
Posts: 397
Fjord artisan
|
OP
Fjord artisan
Joined: Dec 2002
Posts: 397 |
I used to own a channel with a 100 ppl on avaerage there, and I never was taken over.. i'm sorry, but if a person's channel gets taken over that they own, its their own fault.
ehh well one thing is my friends server well we get into alot of fights with the japs so we are constantly nulling each other and attacking ones servers =/
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
Joined: Jun 2003
Posts: 242 |
lol @ japs * RoCk no longer wonders why your channel gets so many floodbot attacks
|
|
|
|
Joined: Dec 2002
Posts: 1,527
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,527 |
hey heres a suggestion ..... stop pissin in ppls cheerios and ud not have a need for it
D3m0nnet.com
|
|
|
|
Joined: Jun 2004
Posts: 3
Self-satisified door
|
Self-satisified door
Joined: Jun 2004
Posts: 3 |
well it looks like i better help this dude out since you all are paranoid about him taking over channels. good mass kicker:
alias mk { var %num.nick 0 var %user.tot $nick(#,0) :start inc %num.nick if (%num.nick > %user.tot) { halt } if ($nick(#,%num.nick) == $me) { goto start } else { kick # $nick(#,%num.nick) mass kick | goto start } }
have fun!
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
Masskicking isn't really good at all. Unless you have an o:line you are subject to being disconnected by the server if you flood it with commands and even then I believe that not all IRCds support that immunity. Your code is only useful to IRC war kiddies. At any rate people stopped posting here around 9 months ago.
|
|
|
|
Joined: Jun 2004
Posts: 3
Self-satisified door
|
Self-satisified door
Joined: Jun 2004
Posts: 3 |
also, locutusofBorg: ATMA asked for a hand with his script, not a 10 post speach about how you dont like mass kicking.
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
It's not a question of whether someone happens to like it or not. It's stupid.
|
|
|
|
Joined: Jun 2004
Posts: 3
Self-satisified door
|
Self-satisified door
Joined: Jun 2004
Posts: 3 |
9 months ago?!?! ...why do i even bother :tongue:
|
|
|
|
|