I am trying to make public commands for changing settings for Allprotection without DCC chat As now a days most of the time I dont have access to my Laptop and cannot use DCC chat directly from phone.
here are few things i have tried but they didnt work.
I was Using this Code to Enable Disable Scripts using Public Command
for example !enable/disable gseen youtube and other scripts
Code: Select all
proc dcc_enable {nick uhost hand chan text} {
set chan1 [lindex $text 0]
set cmdschar [lindex $text 1]
channel set $chan1 +$cmdschar
puthelp "privmsg $chan : Enabled $cmdschar on Channel $chan1 ."
}
Code: Select all
proc dcc_chanset {nick uhost hand chan text} {
set chan1 [lindex $text 0]
set cmdschar [lrange [split $text] 1 end]]
channel set $chan1 $cmdschar
puthelp "Notice $nick : Channel $chan1 Settings Changed to $cmdschar"
}
so instead usingTcl error [dcc_chanset]: illegal channel option: ap:reset"
I changed it tochannel set $chan1 $cmdschar
Code: Select all
proc dcc_chanset {host idx text} {
set chan1 [lindex $text 0]
set cmdschar [lrange $text 1 end]
dccsimul $idx ".chanset $chan1 $cmdschar"
puthelp "privmsg $chan : Channel $chan1 Settings Changed to $cmdschar"
}
Can anyone guide me how I achieve my goal hereTcl error [dcc_chanset]: wrong # args: should be "dcc_chanset host idx text"
P.S i m noob in scripting.
Thanks in Advance