Does anyone have any idea how to do this. I have modified my script above, but it still doesn't seem to be grabbing the variable. I am a little confused as to why. Can anyone tell me what I am doing wrong?
on *:text:!offline on:#: {
set %offline. [ $+ [ $chan ] ] 1
msg $chan Offline feature is enabled. Be sure to specify a message for the offline feature.
}
on *:text:!offline off:#: {
unset %offlinemsg. $+ $2-
set %offline. [ $+ [ $chan ] ] 0
msg $chan Offline feature has been disabled.
}
on *:text:!setoffline*:#: {
set %offlinemsg. [ $+ [ $chan ] ] $2-
msg $chan Offline message was set to $2- $+ .
}
on !*:join:#: {
if ( %offline. [ $+ [ $chan ] ] == 1 ) {
msg $chan This is the result of that message: %offlinemsg
}
}