Code: Select all
bind dcc n bchan sbch
proc sbch {channels i bc} {
global sbch
set sbch $bc
putlog "S-Bitch channel(s) set to: $bc"
}
this is what i want it to do, when i type ".myword #channel", then i want it to set var "sbch #channel" .. i dont get a error or anything, but it wont set the var.. how ever if i add in the tcl "set sbch #channel", then it add the var without any problem, but i want to be able to change the channel(s) true partyline, the reason for this is that i working on a extra-bitch TCL, and i want to be able to turn bitch on/off on channels.. and the bitchy will only happen on the channel or channels that are in that var. now when i try set the var true DCC i get this:
« MyNick » .bchan #channel
« BotNick » [15:07] S-Bitch channel(s) set to: #channel
And everything looks ok, now when i op somone that should be deoped i get this:
« BotNick » [15:07] S-Bitch channel(s) set to: #channel
« BotNick » [15:07] #channel: mode change '+o nick' by nick2!ident@host
« BotNick » [15:07] Tcl error [sbitch]: can't read "sbch": no such variable
so it say it set the variable, and i get no errors while set it, but when i want to call it its not there..

