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.

bot keeps reoping users

Old posts that have not been replied to for several years.
Locked
m
macnsuz

bot keeps reoping users

Post by macnsuz »

I am running an eggdrop v1.6.2 in 3 different chat rooms, each with chanserv. I have set the config file settings for each channel and also have a chanfile with dynamic channel settings. In 2 of the channels the bot works fine, but in 1 channel I am having a problem with the bot re-opping operators, when they have de-opped themselves. I have checked that all the bitch and revenge modes are off for this channel and have even removed the protected status from the ops.
Any help would be appreciated.
User avatar
gumbydammit
Master
Posts: 311
Joined: Thu Sep 05, 2002 4:52 pm
Location: Canada
Contact:

Post by gumbydammit »

did you remove them with .chanset ? or in the conf?
i.e. .chanset #chan -protectops <-- whichever protect is doing the opping
the chanfile overrides the conf you can always view your current channel settings with .chaninfo #chan
a.k.a. hellios
m
macnsuz

Re: reply to my original query

Post by macnsuz »

first of all thanks gumbydammit for the reply. I did .chaninfo and found that despite settings in conf and Dynamic chan file, the settings were wrong. I hope you don't mind but I have pasted the DCF and config here. If possible, could you please advise me where I have got it wrong.


#Dynamic Channel File for WhipB0t (eggdrop v1.6.2) -- written Sun Nov 23 23:57:53 2003

channel set #ukcouples&singles chanmode +tn idle-kick 0 stopnethack-mode 0 revenge-mode 1 need-op {} need-invite {} need-key {} need-unban {} need-limit {} flood-chan 10:60 flood-ctcp 5:60 flood-join 5:60 flood-kick 3:10 flood-deop 3:10 flood-nick 5:60 aop-delay 5:30 +enforcebans +dynamicbans +userbans -autoop -bitch +greet +protectops +protectfriends +dontkickops +statuslog +revenge +revengebot -autovoice -secret +shared +cycle +seen -inactive +dynamicexempts +userexempts +dynamicinvites +userinvites +nodesynch
channel set #tartstearoom chanmode +tn idle-kick 0 stopnethack-mode 0 revenge-mode 1 need-op {} need-invite {} need-key {} need-unban {} need-limit {} flood-chan 10:60 flood-ctcp 5:60 flood-join 5:60 flood-kick 3:10 flood-deop 3:10 flood-nick 5:60 aop-delay 5:30 +enforcebans +dynamicbans +userbans -autoop -bitch +greet +protectops +protectfriends +dontkickops +statuslog +revenge +revengebot +autovoice -secret +shared +cycle +seen -inactive +dynamicexempts +userexempts +dynamicinvites +userinvites +nodesynch
channel set #scottish^swingers chanmode +tn idle-kick 0 stopnethack-mode 0 revenge-mode 1 need-op {} need-invite {} need-key {} need-unban {} need-limit {} flood-chan 10:60 flood-ctcp 5:60 flood-join 5:60 flood-kick 3:10 flood-deop 3:10 flood-nick 5:60 aop-delay 5:30 +enforcebans +dynamicbans +userbans -autoop -bitch +greet -protectops -protectfriends +dontkickops +statuslog -revenge -revengebot +autovoice -secret +shared +cycle +seen -inactive +dynamicexempts +userexempts +dynamicinvites +userinvites +nodesynch
channel add #bots { chanmode +tn idle-kick 0 stopnethack-mode 0 revenge-mode 1 need-op {} need-invite {} need-key {} need-unban {} need-limit {} flood-chan 10:60 flood-ctcp 5:60 flood-join 5:60 flood-kick 3:10 flood-deop 3:10 flood-nick 5:60 aop-delay 5:30 +enforcebans +dynamicbans +userbans -autoop -bitch +greet +protectops +protectfriends +dontkickops +statuslog +revenge +revengebot -autovoice -secret +shared +cycle +seen -inactive +dynamicexempts +userexempts +dynamicinvites +userinvites +nodesynch }

:-?
m
macnsuz

Re: reply - 2nd part

Post by macnsuz »

##### CHANNELS MODULE #####

# this next module provides channel related support for the bot, without
# it, it will just sit on irc, it can respond to msg & ctcp commands, but
# that's all
loadmodule channels

# the chanfile: where dynamic channel settings are stored
set chanfile "ukcas.chan"

# temporary bans will last how many minutes? if set to 0, bot never removes
# them.
set ban-time 60

# temporary exemptions (+e modes) will last how many minutes? if set to 0,
# bot never removes them. This is an IRCNET feature. The bot will check the
# exempts every X minutes, but will not remove the exempt if a ban is set on
# the channel that matches that exempt. Once the ban is removed then the
# exempt will be removed the next time the bot checks.
set exempt-time 60

# temporary invitations (+I modes) will last how many minutes? if set to
# 0, bot never removes them. This is an IRCNET feature. The bot will check the
# invites every X minutes, but will not remove them if the channel is +i. Once
# the channel is -i then the bot will remove then invite mode next time it
# checks this counter
set invite-time 60

# [0/1] expire bans/exempts/invites set by other opped bots on the channel?
# set force-expire 0

# [0/1] share user greets with other bots on the channel if sharing user data?
set share-greet 0

# [0/1] allow users to store an info line?
set use-info 1

# these settings are used as default values when you
# .+chan #chan or .tcl channel add #chan
# look in the section above for explanation on every option

set global-flood-chan 10:60
set global-flood-deop 3:10
set global-flood-kick 3:10
set global-flood-join 5:60
set global-flood-ctcp 5:60
set global-flood-nick 5:60

set global-aop-delay 5:30

set global-idle-kick 0
set global-chanmode "nt"
set global-stopnethack-mode 0
set global-revenge-mode 1

set global-chanset {
-autoop -autovoice
-bitch +cycle
+dontkickops +dynamicbans
+dynamicexempts +dynamicinvites
+enforcebans +greet
-inactive +nodesynch
+protectfriends +protectops
+revenge +revengebot
-secret +seen
+shared +statuslog
+userbans +userexempts
+userinvites
}

# do this for each channel you wish to sit on:
# NOTE: for some reason Tcl won't let you put comments inside { } -- so
# don't try it, cos it'll mess up your channel definition

channel add #ukcouples&singles
channel add #tartstearoom
channel add #scottish^swingers {
chanmode "+nt-likm"
idle-kick 0
stopnethack-mode 0
revenge-mode 1
aop-delay 5:30
need-op { putserv "PRIVMSG #lamest :op me cos i'm lame!" }
need-invite { putserv "PRIVMSG #lamest :let me in!" }
need-key { putserv "PRIVMSG #lamest :let me in!" }
need-unban { putserv "PRIVMSG #lamest :let me in!" }
need-limit { putserv "PRIVMSG #lamest :let me in!" }
flood-chan 10:60
flood-deop 3:10
flood-kick 6:60
flood-join 3:30
flood-ctcp 3:60
flood-nick 5:60
}

# the things inside the { } are CHANNEL OPTIONS -- they can be set within
# the "channel add" command, or by using a "channel set" command as in the
# examples below. they list all the options you can set for a channel.

# chanmode
# what modes will be enforced? '+' modes will always be kept on, '-' modes
# will always be kept off
# idle-kick
# kick channel members after how many minutes of being idle?
# (leave out to disable, or set to 0)

# stopnethack-mode
# de-op anyone who enters the channel with serverops
# 0 turn off,
# 1 isoptest (allow serverop if registered op),
# 2 wasoptest (allow serverop if op before split)
# 3 allow serverop if isop or wasop
# 4 allow serverop if isop and wasop
# 5 if channel -bitch: see stopnethack-mode 3
# if channel +bitch: see stopnethack-mode 1
# 6 if channel -bitch: see stopnethack-mode 2
# if channel +bitch: see stopnethack-mode 4

# revenge-mode
# defines how the bot should punish bad users when revenging.
# default is 1.
# 0 for deop
# 1 for deop and +d
# 2 for deop, +d and kick
# 3 for deop, chattr +d, kick and ban

# aop-delay (minimum:maximum)
# for autoop and autovoice
# aop-delay 0 no autoopdelay
# aop-delay x or aop-delay x:x x sec. autoopdelay
# aop-delay x:y random delay
# if a autoopped user joined during a other delayed autoop is pending,
# the bot will sent both autoop based on the last-joined-user-delay-time,
# probable in only one line.

# need-op
# script to run (if any) when the bot needs to be op'd on this channel
# need-invite
# script to run (if any) when the bot gets locked out of the channel
# because the channel is +i
# need-key
# script to run (if any) when the bot gets locked out of the channel
# because it doesn't have the channel key
# need-unban
# script to run (if any) when the bot gets banned from this channel
# need-limit
# script to run (if any) when the bot gets locked out of the channel
# because the channel limit is full
# flood-chan (number:seconds)
# how many channel messages in how many seconds is a flood
# not specifying or using number = 0 will not check chan floods!
# flood-ctcp (number:seconds)
# how many channel messages in how many seconds is a flood
# not specifying or using number = 0 will not check ctcp floods!
# flood-deop (number:seconds)
# how many deops in how many seconds is a mass de-op
# not specifying or using number = 0 will not check de-op floods!
# flood-kick (number:seconds)
# how many kicks in how many seconds is a mass kick?
# not specifying or using number = 0 will not check mass kicks!
# flood-join (number:seconds)
# how many joins/nick changes in how many seconds is a join flood?
# not specifying or using number = 0 will not check join floods!

# note that "need-op", "need-invite", etc, are limited to 120 characters,
# so if you want to so something more complicated, just write a proc,
# and make them call your proc.

# there are also a lot of options that can be turned on or off for each
# channel. to turn an option on, put a + in front of it. to turn it off,
# put a - in front of it. i.e., to have auto-op, put:
# +autoop
# to turn it off, put:
# -autoop

# when a ban is set, kick people who are on the channel and match the
# new ban? (i.e., they were on the channel before the ban)
channel set #ukcouples&singles +enforcebans
channel set #scottish^swingers +enforcebans
channel set #tartstearoom +enforcebans

# Only activate bans on the channel when necessary? (This keeps the
# channel's ban list from getting excessively long.
# The bot still remembers every ban, but it only activates a ban on
# the channel when it sees someone join who matches that ban.)
channel set #ukcouples&singles +dynamicbans
channel set #scottish^swingers +dynamicbans
channel set #tartstearoom +dynamicbans

# allow bans to be made by users directly? (if turned off, the bot will
# require all bans to be made through the bot's console)
channel set #ukcouples&singles +userbans
channel set #scottish^swingers +userbans
channel set #tartstearoom +userbans

# only activate exempts on the channel when necessary? (this keeps the
# channel's exempt list from getting excessively long. the bot still
# remembers every exempt, but it only activates a exempt on the channel
# when it sees a ban set matching the exempt. The exempt remains active
# on the channel for as long as the ban is still active.
channel set #ukcouples&singles +dynamicexempts
channel set #tartstearoom +dynamicexempts
channel set #scottish^swingers +dynamicexempts

# allow exempts to be made by users directly? (if turned off, the bot will
# require all exempts to be made through the bot's console)
channel set #ukcouples&singles +userexempts
channel set #tartstearoom +userexempts
channel set #scottish^swingers +userexempts

# only activate invites on the channel when necessary? (this keeps the
# channel's invite list from getting excessively long. the bot still
# remembers every invite, but the invites are only activated when the
# channel is set to invite only and a user joins after requesting an
# invite. Once set the invite remains until the channel goes to -i
channel set #ukcouples&singles +dynamicinvites
channel set #tartstearoom +dynamicinvites
channel set #scottish^swingers +dynamicinvites

# allow invites to be made by users directly? (if turned off, the bot will
# require all invites to be made through the bot's console)
channel set #ukcouples&singles +userinvites
channel set #tartstearoom +userinvites
channel set #scottish^swingers +userinvites

# op users with the +o (op) flag as soon as they join the channel?
# (hint: this is a BAD IDEA)
channel set #ukcouples&singles -autoop
channel set #tartstearoom -autoop
channel set #scottish^swingers -autoop

# only let users with +o (op) flag be channel ops?
channel set #ukcouples&singles -bitch
channel set #tartstearoom -bitch
channel set #scottish^swingers -bitch

# say a user's info line when they join the channel?
channel set #ukcouples&singles +greet
channel set #tartstearoom +greet
channel set #scottish^swingers +greet

# re-op a user with the +o (op) flag if they get deopped?
channel set #ukcouples&singles +protectops
channel set #tartstearoom +protectops
channel set #scottish^swingers -protectops

# re-op a user with the +f (friend) flag if they get deopped?
channel set #ukcouples&singles +protectfriends
channel set #tartstearoom +protectfriends
channel set #scottish^swingers -protectfriends

# log the channel status line every 5 minutes? (some people think
# it's annoying; I think it's neat)
channel set #ukcouples&singles +statuslog
channel set #tartstearoom +statuslog
channel set #scottish^swingers +statuslog

# remember people who deop/kick/ban bots, valid ops or friends, and punish them?
# users with +f (friend) flag are exempt from revenge
channel set #ukcouples&singles +revenge
channel set #tartstearoom +revenge
channel set #scottish^swingers -revenge

# this works similar to revenge, but it triggers only for valid bots and
# allows the deop or kick of an op
channel set #ukcouples&singles +revengebot
channel set #tartstearoom +revengebot
channel set #scottish^swingers -revengebot

# voice users with +v (voice) flag when they join the channel?
channel set #ukcouples&singles -autovoice
channel set #tartstearoom +autovoice
channel set #scottish^swingers +autovoice

# prevent this channel from being listed on the botnet? (for paranoid
# people)
channel set #ukcouples&singles -secret
channel set #tartstearoom -secret
channel set #scottish^swingers -secret

# share user channel info for this channel?
channel set #ukcouples&singles +shared
channel set #tartstearoom +shared
channel set #scottish^swingers -shared

# cycle the channel when it becomes op-less?
channel set #ukcouples&singles +cycle
channel set #tartstearoom +cycle
channel set #scottish^swingers +cycle

# do you want the bot not to be able to kick +o flag users ?
# letting them kick-flood for instance, to protect the channel against
# clone attacks
channel set #ukcouples&singles +dontkickops
channel set #tartstearoom +dontkickops
channel set #scottish^swingers -dontkickops

# prevents the bot from joining the channel (or makes it leave the channel
# if it is already there).
# Can be useful to make the bot leave a channel without loosing it's
# settings (flood settings, all these "channel set" settings), user flags
# for this channel, bans for this channel, and without affecting any
# sharing
channel set #ukcouples&singles -inactive
channel set #tartstearoom -inactive
channel set #scottish^swingers -inactive

# respond to seen requests in the channel? (seen module must be loaded)
channel set #ukcouples&singles +seen
channel set #tartstearoom +seen
channel set #scottish^swingers +seen

# allow non-ops to perform channel modes? (Stops bot from
# fighting with services such as ChanServ)
channel set #ukcouples&singles +nodesynch
channel set #tartstearoom +nodesynch
channel set #scottish^swingers +nodesynch
Locked