I know how to do everything except use ".netjoin" via a public command and get it to actually do netjoin as if you were to type it in the partyline.
I can change channel modes a single bot that's not a problem using channel set. I just don't know how to use the "netjoin" trigger in the partyline via a tcl using a public command.
Code: Select all
set cmd "."
set chanmode "nt-lki"
set chansetz "+enforcebans +dynamicbans +autoop +bitch -protectops +stopnethack +revenge -dontkickops +revengebot +protectfriends"
bind pub n|n ${cmd}to pub:to
proc pub:to {nick host hand chan text} {
if {(![authed $hand])} {return 0}
set chanz [lindex $text 0]
channel add $chanz
channel set $chanz chanmode $::chanmode
channel set $chanz aop-delay 0
channel set $chanz revenge-mode 3
foreach chanset $::chansetz {
channel set $chanz $chanset
}
putlog "!!## $chanz is set and added !!## by $nick"
}
putlog "Loaded EZ Mode by nitsuj@efnet"