Switch to edit mode.
Name(s): c_tap1: comm = caller
2: comm:isa($comm) || raise(E_PERM)
3: if (!comm:_get_active())
4: this:chan_join("control", "silently", comm)
5: comm:action("command")
6: else
7: for chan in (this:ls_chan(comm))
8: this:chan_part(chan, comm)
9: endfor
10: endif