Channel

Main.Channel History

Hide minor edits - Show changes to markup

December 31, 2008, at 01:24 AM EST by admin
Added lines 1-15:
     channel - syntax: channel(CH,"channel name",["on"|"off"]) 

Without the third argument, returns TRUE if CH has the specified channel on/off. With the third argument, turns the channel on or off - used in academy to toggle channels are various stages.

   --- Part of academy lesson on auction. Is skipped is CH already has auction on.
    if not(channel(ch,"auction")) then 
      sayto(ch,"I see that you have the auction channel turned off "..ch.name..".")
      sayto(ch,"I am going to turn your auction channel on so that we can continue this lesson.")
      sayto(ch,"Feel free to turn it off when we are done.")
      echoat(ch,"")
      channel(ch,"auction","on")
   end