def switch():
 try:
  target = g['stuff'].split()[0]
  args = parse_arguments()
  try:
   if (g['stuff'].split()[(-1)] == '-f'):
    guide = 'To ignore an option, just hit Enter key.'
    printNicely(light_magenta(guide))
    only = raw_input('Only nicks [Ex: @xxx,@yy]: ')
    ignore = raw_input('Ignore nicks [Ex: @xxx,@yy]: ')
    args.filter = list(filter(None, only.split(',')))
    args.ignore = list(filter(None, ignore.split(',')))
  except:
   printNicely(red('Sorry, wrong format.'))
   return
  g['stream_stop'] = True
  try:
   stuff = g['stuff'].split()[1]
  except:
   stuff = None
  spawn_dict = {'public': spawn_public_stream, 'list': spawn_list_stream, 'mine': spawn_personal_stream}
  spawn_dict.get(target)(args, stuff)
 except:
  debug_option()
  printNicely(red("Sorry I can't understand."))

def switch ( ) : try : target = g [ 'stuff' ] . split ( ) [ 0 ] args = parse_arguments ( ) try : if ( g [ 'stuff' ] . split ( ) [ ( - 1 ) ] == '-f' ) : guide = 'To ignore an option, just hit Enter key.' printNicely ( light_magenta ( guide ) ) only = raw_input ( 'Only nicks [Ex: @xxx,@yy]: ' ) ignore = raw_input ( 'Ignore nicks [Ex: @xxx,@yy]: ' ) args . filter = list ( filter ( None , only . split ( ',' ) ) ) args . ignore = list ( filter ( None , ignore . split ( ',' ) ) ) except : printNicely ( red ( 'Sorry, wrong format.' ) ) return g [ 'stream_stop' ] = True try : stuff = g [ 'stuff' ] . split ( ) [ 1 ] except : stuff = None spawn_dict = { 'public' : spawn_public_stream , 'list' : spawn_list_stream , 'mine' : spawn_personal_stream } spawn_dict . get ( target ) ( args , stuff ) except : debug_option ( ) printNicely ( red ( "Sorry I can't understand." ) )
switch stream .