i have wrote this for a ircop'ed eggdrop bot, to ease the burden on myself and others, but cant get the proc bind right ( IE right now it says proc name args body) should be like something like "nick host handle channel testes" thats just an example, its running on a 1.6.19 eggdrop
what its suppose to do, is shut down and reregister a channel and lock it down, and stay in the 'said' channel. i have omited the oper line to drop the channel will add that later. But if someone out there can help me, I sure would like the help on this script.
proc msg_closechan {proc name args body}
{
global botnick
set chan [lindex $vars 0]
set curchan [channels]
set why [lrange $vars 1 end]
foreach chann $curchan {
if {[string tolower $chann] == [string tolower $chan]}
{
putserv "NOTICE $nick :I'm already on $chan you lamer"
return 0
}
}
channel add $chan {chanmode "+ntspi"}
putserv "NOTICE $nick :Added $chan to channel list. (!ccs changes modes)"
putserv "MSG chanserv :register $chan passwordhere channel is closed"
return 1
}
proc msg_closechan {nick uhost handle text} {
...code here
}
I'd strongly recommend that you read, the tcl-commands.doc(/.html) file in the doc/ folder in eggdrop's directory. or View them online here see "Bind Types"
The reason for the list is to parse all variables "now", and yet encapsulate the data in a list to prevent a second evaluation/substitution when the timer triggers.