Tried that - doesn't set the ban.use [putkick] immediately after [newchanban] to enforce the ban
Ok - unless i manually set the +b mode with the script, the ban isn't enforced, even though it's there.what do you care whether the ban is set immediately on the channel or set upon banned user entering the channel? in both cases it will be enforced immediately - in the first case by using [putkick] in the script, in the second case automatically by eggdrop's default behaviour
if you don't want bans to be lifted on the channel, use -dynamicbans chan setting
Code: Select all
putserv "KICK $chan $nick
set ban *!*[string tolower [string range $uhost [string first @ $uhost] end]]
newchanban $chan $ban $comment $reason $bantime