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.

kickin ops?

Old posts that have not been replied to for several years.
Locked
n
newaki
Voice
Posts: 7
Joined: Thu Dec 02, 2004 12:54 am

kickin ops?

Post by newaki »

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
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

disable flood protection
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

Code: Select all

.chanset #yourchannel +protectops +protectfriends +dontkickops
and a healthy dose of .help chaninfo :mrgreen:
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

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
User avatar
firewall
Voice
Posts: 13
Joined: Thu Oct 07, 2004 8:31 pm
Location: Brazil
Contact:

Post by firewall »

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
:D
long live eggdrop :)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

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 avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

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 :P
Have you ever read "The Manual"?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

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.
==================================
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

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 :P
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
Locked