Been trying to find out how to execute a command in the DCC when triggered by a public proc.
What i would like to do is, to call a public command like !import and then in the proc tell the bot to execute in the party line .ap:import #oldchan #newchan (this command in the party line would import the protection settings from Opposing's script Allprotection).
I have tried several commands, like 'putdcc, channel set, channel bla' and I can not figure it out. Atleast in the putdcc command, it says putdcc <idx> <text> whereas I cannot find out what IDX actually is.
Is there away to do this?
What I have so far is:
Code: Select all
set home "#test"
#
bind pub n|n .import proc_secuon
#
proc proc_secuon {nick host handle channel text} {
global home chanset
putserv "NOTICE $nick :Importing Defualt Global Security Settings for channel $channel."
# putdcc $idx "ap:import $home $channel"
# channel set ".ap:import $home $channel"
# NO IDEA WHAT TO PUT HERE :(
return 1
}
Any hints would be appreciated.
Cheers.