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.

Using netbots.tcl's .netjoin command via pub command

Old posts that have not been replied to for several years.
Locked
G
Gothic-Angel
Op
Posts: 109
Joined: Mon Sep 23, 2002 9:46 pm

Using netbots.tcl's .netjoin command via pub command

Post by Gothic-Angel »

Im writting a tcl to set channel modes and all that good stuff a specific way so I have to type a command like .j #chan and they all join the channel with the preset chanmodes.

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"




G
Gothic-Angel
Op
Posts: 109
Joined: Mon Sep 23, 2002 9:46 pm

Post by Gothic-Angel »

Im still lost as to how to broadcast this across the botnet using ".netjoin" and ".netchanset" or the equivalents as to how I could do this.
Locked