This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
newaki
Voice
Posts: 7 Joined: Thu Dec 02, 2004 12:54 am
Post
by newaki » Mon Dec 13, 2004 12:48 am
ok my egg kicks op for "flooding" how can i have it so my egg wont kick ops and voices for floodin? (with out puttin everyone as a user?)
Thanks
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Mon Dec 13, 2004 1:04 am
disable flood protection
YooHoo
Owner
Posts: 939 Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast
Post
by YooHoo » Mon Dec 13, 2004 2:05 am
Code: Select all
.chanset #yourchannel +protectops +protectfriends +dontkickops
and a healthy dose of
.help chaninfo
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Mon Dec 13, 2004 2:24 am
YooHoo wrote: Code: Select all
.chanset #yourchannel +protectops +protectfriends +dontkickops
that won't help, the guy doesn't want to add channel ops as +o users and +dontkickops works on +o botusers only
firewall
Voice
Posts: 13 Joined: Thu Oct 07, 2004 8:31 pm
Location: Brazil
Contact:
Post
by firewall » Mon Dec 13, 2004 5:51 pm
You can give him the flag +f, of friend, then, the bot will not kick him, if protectfriends is on.
I hope I'm right.
i'm firewall at virtualife.com.br
long live eggdrop
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Mon Dec 13, 2004 6:29 pm
you are right but this isn't what that guy had in mind.... he wants to solve the problem without adding his chanops as bot users
user
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Mon Dec 13, 2004 7:46 pm
Code: Select all
bind flud - * myFlood
proc myFlood {n u h t c} {
expr {[validchan $c]&&[isop $n $c]}
}
I've no idea what $c is for a msg flood, so I added that 'validchan' check instead of testing it
Have you ever read "The Manual"?
awyeah
Revered One
Posts: 1580 Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:
Post
by awyeah » Mon Dec 13, 2004 9:41 pm
I talked about that with BarkerJr he said flud has 3-4 types of settings of which one is a private message out of the other channel join, channel flood and etc. The extra var of $chan in bind flud msg should be added for it to work, yet we can consider it redundant and not of any use.
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Mon Dec 13, 2004 10:45 pm
user wrote: Code: Select all
bind flud - * myFlood
proc myFlood {n u h t c} {
expr {[validchan $c]&&[isop $n $c]}
}
I've no idea what $c is for a msg flood, so I added that 'validchan' check instead of testing it
you were quite right to add [validchan] check
for flud types "msg" & "ctcp" it passes "*" as channel:
Code: Select all
if (lastmsgs[which] >= thr) { /* FLOOD */
/* Reset counters */
lastmsgs[which] = 0;
lastmsgtime[which] = 0;
lastmsghost[which][0] = 0;
u = get_user_by_host(from);
if (check_tcl_flud(floodnick, floodhost, u, ftype, "*"))
return 0;
/* Private msg */
simple_sprintf(h, "*!*@%s", p);
putlog(LOG_MISC, "*", IRC_FLOODIGNORE1, p);
addignore(h, botnetnick, (which == FLOOD_CTCP) ? "CTCP flood" :
"MSG/NOTICE flood", now + (60 * ignore_time));
}
your solution is simple and elegant, I like it