question: public void commandFollow ( String channel , String parameter ) { String user = settings . getString ( "username" ) ; String target = Helper . toStream ( channel ) ; if ( parameter != null && ! parameter . isEmpty ( ) ) { target = Helper . toStream ( parameter . trim ( ) ) ; } if ( ! Helper . validateStream ( target ) ) { g . printSystem ( "No valid channel to follow." ) ; return ; } if ( ! Helper . validateStream ( user ) ) { g . printSystem ( "No valid username." ) ; return ; } api . followChannel ( user , target ) ; }
target:  Follows the stream given in the parameter, or the channel if no parameter is given.