I can not say for sure if the net-type settings will override these settings. However, i set mine a lot higher the IRCd allows so i can store bans on my bot without having to be limited to the amount that can be on the channel at one time. Hint: as long as every ban isn't set on the channel, should be able to get away with it# Set here the maximum number of bans you want the bot to set on a channel.
# Eggdrop will not place any more bans if this limit is reached. Undernet
# currently allows 45 bans, IRCnet allows 30, EFnet allows 100, and DALnet
# allows 100.
set max-bans 30
# Set here the maximum number of exempts you want Eggdrop to set on a channel.
# Eggdrop will not place any more exempts if this limit is reached.
set max-exempts 20
# Set here the maximum number of invites you want Eggdrop to set on a channel.
# Eggdrop will not place any more invites if this limit is reached.
set max-invites 20
# There is a global limit for +b/+e/+I modes. This limit should be set to
# the same value as max-bans for networks that do not support +e/+I.
set max-modes 30
Code: Select all
# sbx.tcl by TCL_no_TK
set sbx_version "1.2b"
#
# This script allows eggdrop to add bans from its ban list or a channels ban list.
# Depending on the settings, to X. Runs when eggdrop switches its logs daily.
#
# see http://cservice.undernet.org/docs/xcmds.txt for help when setting the script.
# Usage: (in DCC/telnet)
#
# .chanset <#channel> +sbx-enable - will enable the script on the given channel.
# .chanset <#channel> -sbx-enable - will disable the script.
# .chanset <#channel> sbx-duration <hours> - sets the ban duration, in hours for this channel.
# .chanset <#channel> sbx-level <level> - sets the ban level, for this channel.
# .chanset <#channel> sbx-reason <reason> - sets the ban reason, to use when adding the bans
# to X for this channel.
# internal or server
# 1 = use eggdrop's internal ban list for the channel.
# 2 = use the bans from the channel's ban list. (default)
set sbx_type "2"
# default reason
set sbx_reason "You have been banned from this channel."
proc evnt:sbx {type} {
global sbx_type sbx_reason
putlog "* sbx -- checking ban lists to transfer to X"
foreach chan [channels] {
if {([channel get "$chan" "sbx-enable"]) && ([sbx:xonchan "$chan"])} {
if {($sbx_type == "1")} {
if {([llength [banlist "$chan"]] > 0)} {
foreach b [banlist "$chan"] {
set _syntax "ban $chan [lindex $b 0]"
if {([channel get "$chan" "sbx-duration"] != "")} { append _syntax " [channel get "$chan" "sbx-duration"]" }
if {([channel get "$chan" "sbx-level"] != "")} { append _syntax " [channel get "$chan" "sbx-level"]"}
if {([channel get "$chan" "sbx-reason"] == "")} { append _syntax " $sbx_reason"} else { append _syntax " [channel get "$chan" "sbx-reason"]"}
putserv "PRIVMSG x@channels.undernet.org :$_syntax"
if {[killchanban "$chan" "[lindex $b 0]"]} {continue}
}
}
} else {
if {([llength [chanbans "$chan"]] > 0)} {
foreach b [chanbans "$chan"] {
set _syntax "ban $chan [lindex $b 0]"
if {([channel get "$chan" "sbx-duration"] != "")} { append _syntax " [channel get "$chan" "sbx-duration"]" }
if {([channel get "$chan" "sbx-level"] != "")} { append _syntax " [channel get "$chan" "sbx-level"]"}
if {([channel get "$chan" "sbx-reason"] == "")} { append _syntax " $sbx_reason"} else { append _syntax " [channel get "$chan" "sbx-reason"]"}
putserv "PRIVMSG x@channels.undernet.org :$_syntax"
pushmode $chan -b [lindex $b 0]
continue
}
}
}
}
}; return
}
# used for checking if X is on the channel or not.
proc sbx:xonchan {channel} {
if {([onchan "X" "$channel"])} {
return 1
} else {
return 0
}
}
setudef flag sbx-enable
setudef str sbx-duration
setudef str sbx-reason
setudef str sbx-level
bind evnt - logfile evnt:sbx
putlog "loaded sbx.tcl version $sbx_version by TCL_no_TK"
return
Code: Select all
.set errorInfo